title: I Need To Stop OR Cancel UILocalNotification
body: <p>I need to cancel UILocalNotification by Function but if i use </p>
  
  <pre><code>[[UIApplication sharedApplication] cancelAllLocalNotifications];
  </code></pre>
  
  <p>i get to the app again but the app stuck , it's timer</p>
  
  <pre><code>UILocalNotification *local = [[UILocalNotification alloc] init];
      local.fireDate = [NSDate dateWithTimeIntervalSinceNow:10];
      local.timeZone = [NSTimeZone defaultTimeZone];
      local.alertBody = @"";
      local.alertAction = @"";
      NSDictionary *customInfo =
      [NSDictionary dictionaryWithObject:@"ABCD1234" forKey:@"yourKey"];
      local.userInfo = customInfo;
      [[UIApplication sharedApplication] scheduleLocalNotification:local];
      [local release];
  
  
      UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@""message:@""delegate: self cancelButtonTitle:@"Close"otherButtonTitles: nil];
      [alert show];
      [alert release];
  
  
  
      [self performSelector:@selector(myFunc) withObject:nil afterDelay:10.0];
  
      startDate = [[NSDate date]retain];
  
      // Create the stop watch timer that fires every 10 ms
      myTime = [NSTimer scheduledTimerWithTimeInterval:1.0/10.0
                                                        target:self
                                                      selector:@selector(updateTimer)
                                                      userInfo:nil
                                                       repeats:YES];
  </code></pre>