來源:
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(@"又能成功使用了。");
}