1. -(void) viewWillDisappear:(BOOL)animated    
  2. {   
  3.     if ([self.navigationController.viewControllers indexOfObject:self]==NSNotFound)    
  4.     {   
  5.         // back button was pressed.  We know this is true because self is no longer   
  6.         // in the navigation stack.     
  7.         NSLog(@"viewWillDisappear:(BOOL)animated ");   
  8.         if(request)   
  9.         {   
  10.             [request clearDelegatesAndCancel];   
  11.             request.delegate = nil;   
  12.             [request release];   
  13.             request = nil;   
  14.         }   
  15.     }   
  16.     [super viewWillDisappear:animated];   
  17. }  
http://www.cnblogs.com/zhwl/archive/2012/08/11/2633498.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-03-04
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-02-02
  • 2021-12-23
  • 2021-11-11
  • 2021-11-14
  • 2021-12-07
  • 2022-12-23
相关资源
相似解决方案