UINavigationController是IOS开发中常用的用于视图切换的控制器. 在对象管理上, UINavigationController采用stack的方式来管理各个view的层级, rootViewController在stack的最底层. 同时, 也提供了诸多方法用于进行view之间的切换及管理等.常见的方法有pushViewController与popViewController等, 需要注意的是UINavigationController对应的segue的属性要设置为push方式....
分类:
其他好文 时间:
2014-12-24 01:20:53
阅读次数:
606
总结:其实navigationController很简单,其往往就是应用程序委托的根视图控制器且其往往就是通过第一个显示的视图控制器来初始化自己。而后的工作,就是pushViewController,popViewController。。。[self.navigationControllerpush...
分类:
其他好文 时间:
2014-12-20 14:03:52
阅读次数:
414
http://blog.csdn.net/dabiaoyanjun/article/details/7774775uinavigationcontrolleranimation在pushViewController:animated:时使用非默认的页面转换特效1. 首先要明确的是,不使用pushVi...
分类:
其他好文 时间:
2014-12-16 14:57:59
阅读次数:
166
使用NavigationViewController进行页面跳转时,应该使用pushViewController方法来跳转至下一页面,这样的话,下一页面同样在NavigationViewController容器中。1、跳转到下一页面:AloneSetPrizeViewController*setPr...
分类:
移动开发 时间:
2014-12-14 00:31:39
阅读次数:
298
[self.navigationController pushViewController: sampleViewController animated:true]; 界面无反应
reason: 'Pushing a navigation controller is not supported'...
分类:
移动开发 时间:
2014-11-26 14:21:11
阅读次数:
189
使用NavigationViewController进行页面跳转时,应该使用pushViewController方法来跳转至下一页面,这样的话,下一页面同样在NavigationViewController容器中。1、跳转到下一页面:AloneSetPrizeViewController *setP...
分类:
其他好文 时间:
2014-11-20 11:41:02
阅读次数:
195
一个ViewController,一般通过init或initWithNibName来加载。二者没有什么不同,init最终还是要调用initWithNibName方法(除非这个ViewController没有nib文件)。我们经常在initWithNibName方法中初始化视图,变量或者其他成员。这是...
分类:
其他好文 时间:
2014-11-07 08:37:50
阅读次数:
127
以下两种情况是我在开发过程中遇到的,一种是代码使用pushViewController,另一种是storyboard直接使用push。之前也查阅了很多关于隐藏底部tabbar的资料,但是要么使用起来麻烦,要么就是藕合度高代码不规范(这里有点代码洁癖,当前类相关的事务应该写在本类中)。
1、使用pushViewController
如A->B;A是列表页,带有tabbar;B是内容页,不需要ta...
分类:
移动开发 时间:
2014-11-06 14:53:28
阅读次数:
193
CATransition*transition=[CATransitionanimation];
transition.duration=1.0f;
transition.timingFunction=[CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type=@"cube";
transition.subtype=kCATransitionFromRight;
transition...
分类:
其他好文 时间:
2014-10-20 02:15:45
阅读次数:
198
在pushViewController之前调用:1 self.hidesBottomBarWhenPushed = YES;2 ZWMessageViewController *messageController = [[ZWMessageViewController alloc] initWith...
分类:
其他好文 时间:
2014-10-19 17:06:07
阅读次数:
266