I have this code:
-(IBAction) doSomething{
FirstViewController *firstViewController = [[[FirstViewController alloc]init]autorelease];
[firstViewController.label1 setAlpha:1.00];
[firstViewController.label2 setAlpha:1.00];
}
-(void) do{
//use firtsViewController in this method
}
As you can see in the example I use an object “firstViewController” of FirstViewController class, but if I want to use the same object in method “do”? How can I do
In the header have…
Then replace your method with…
and add..