cant stop NStimer on iphone
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1031554/nstimer-doesnt-stop">NSTimer doesn&#39;t stop</a>  </p>
</blockquote>



<p>this is something strange ,, 
i am calling alert button inside appDidfinsh method  and based on that click i am calling a method defined in viewController  to stop timer  but i cant stop however i can access my method </p>

<p>-</p>

<pre><code> (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    


                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"check" message:@" this is 2nd time!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: @"Update",nil];

                [alert show]; 


    }


    - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {


            if(buttonIndex == 1) {  
    DatabaseTestViewController *vv=[ [DatabaseTestViewController alloc]init];

                [viewController handleTime];
                [vv handleTime];
    }
    }
</code></pre>

<p>////////////// now in view controller class</p>

<pre><code>- (void)viewDidLoad {
    [super viewDidLoad];

    NSUserDefaults *getid = [NSUserDefaults standardUserDefaults];

    getMode  = [getid stringForKey:@"AppMode"];




    timer = [NSTimer scheduledTimerWithTimeInterval: .8
                                             target: self
                                           selector: @selector(handleTimer)
                                           userInfo: nil
                                            repeats: YES];


}


- (void) handleTimer: (NSTimer *) timer

{

    NSLog(@"getModis is %@",getMode);
 //   [self.tabelView reloadData];


    //[super viewDidLoad];


            } // 





    -(void) handleTime
    {

[self.tabelView reloadData];// this is also not updating my data i actually need this 
[timer invalidate];// not working , timer still running but i can access this method


        [timer release];
        timer =nil;
    }
</code></pre>
