zoukankan      html  css  js  c++  java
  • UINavigationController检测后退按钮被按下

    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
  • 相关阅读:
    chrome中打开 swf下载的问题
    爱对人比爱上人更重要
    ActiveMQ集群
    ActiveMQ相关API
    ActiveMQ持久化
    ActiveMQ处理模式
    ActiveMQ
    JMS与消息队列
    微服务设计、拆分原则
    web常用服务架构
  • 原文地址:https://www.cnblogs.com/likwo/p/2635514.html
Copyright © 2011-2022 走看看