来源:

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
34 声望1 粉丝

哦也