How can i call NStimer form one viewcontroller from unother viewcontroller?
        Posted  
        
            by Bala
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Bala
        
        
        
        Published on 2010-06-02T16:31:59Z
        Indexed on 
            2010/06/02
            17:44 UTC
        
        
        Read the original article
        Hit count: 220
        
iphone
At first time i call the timer like this in Third viewcontroller timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(targetMethod) userInfo:nil repeats:NO];
Then timer called the targetMethod
-(void)targetMethod { First * sVC = [[First alloc] initWithNibName:@"First" bundle:[NSBundle mainBundle]]; [self presentModalViewController:sVC animated:YES]; [sVC release]; [timer invalidate]; }
First viewcontroller opened.. In First viewcontroller had one button.In button action i wrote
- (IBAction) Action:(id)sender
{
[self dismissModalViewControllerAnimated:YES];
 Third *BVC=[[Third alloc]init]; [Bvc TimerStart]; Timestart is function i start timer in this function.. i want to call Third viewcontroller timer function this place }
timer started..But view didn't open (first )viewcontroller.......
Please help me......
© Stack Overflow or respective owner