由于navigation引起viewwillappear不被调用

来源:

http://www.cnblogs.com/zxtx/articles/1806127.html

.h:

<UINavigationControllerDelegate>

.m:

self.navigationController.delegate=self;

// navigationController代理函数
-(void) navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    [viewController viewWillAppear:animated];
}

-(void) viewWillAppear:(BOOL)animated{

    NSLog(@"又能成功使用了。");
}
    原文作者:Dean
    原文地址: https://segmentfault.com/a/1190000002533022
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞