iOS: 通过addChildViewController实现 Segment 下的 View 的切换

来源:互联网 发布:印象笔记 圈点 mac 编辑:程序博客网 时间:2024/05/22 12:07


iOS: 通过addChildViewController实现 Segment 下的 View 的切换


http://leopard168.blog.163.com/blog/static/1684718442014111981324726/


经过阅读获知可以使用方法

- (void)transitionFromViewContro

ller:(UIViewController*)fromViewControllertoViewController:(UIViewController *)toViewControllerduration:(NSTimeInterval)durationoptions:(UIViewAnimationOptions)optionsanimations:(void (^)(void))animationscompletion:(void (^)(BOOL finished))completion

查找到使用例子:

http://blog.sina.com.cn/s/blog_7b9d64af0101c2vm.html

有详细的介绍。https://github.com/tangqiaoboy/iOS5ViewCtrlerSample源码例子有助于使用和理解。



iOS 在scrollview加入 由自己定义的controller 生成的view

http://blog.csdn.net/chen_xinjia/article/details/38582501



这也是一个加view的例子。

阅读全文
0 0
原创粉丝点击