I have a simple question (
)
if I have this code in the app delegate .m file
how can I get this var so i can use it in the other view
ex.
In the AppViewControler.m
lets say "-(IBAction)UsedVar" is connected to a button
if I have this code in the app delegate .m file
Code:
-(void){
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:window cache:NO];
[settingsViewController.view removeFromSuperview];
[self.window addSubview:[viewController view]];
[UIView commitAnimations];
[settingsViewController release];
settingsViewController = nil;
[B]int variableX=10;[/B]
}
how can I get this var so i can use it in the other view
ex.
In the AppViewControler.m
Code:
-(IBAction)UsedVar{
Result = 2 + [B]variableX[/B];
printf("%d and",Result);
}
lets say "-(IBAction)UsedVar" is connected to a button