VC1.m
contains the following code after a process completes.
if (self.iboard>0) {
countIsNil = TRUE;
}
I want another VC, say VC2.m
to include the following code.
- (void)viewDidLoad
{
if (countIsNil)
{
countIsNil = FALSE;
count.text=@"1";
return;
}
[super viewDidLoad];
}
How do I construct/manage the BOOL countIsNil
so that this works? I suspect the answer involves using static variables, but I have no examples of such.