标签:
1、首先要是从有导航的页面切换到无导航页面时,先把导航隐藏掉,调用如下方法
//隐藏
- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES animated:animated];
}
//显示
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
[self.navigationController setNavigationBarHidden:NO animated:animated];
}
2、其次再到隐藏导航的页面自定义自己要的导航按钮。
3、如果想实现类似微博和QQ的空间转换的效果,请参考这个链接做的效果 http://www.cocoachina.com/ios/20150401/11459.html
标签:
原文地址:http://www.cnblogs.com/iOS-developer-hc/p/5358788.html