两个小Points
来源:互联网 发布:经期饮食 知乎 编辑:程序博客网 时间:2024/05/18 08:14
* dismissModalViewControllerAnimated *
dismiss 顺序问题:
A present B , B present C.
B 作为主体调用dismiss方法时,首先找自己作为presenter present出来的视图,将其dismiss掉。
/*The next two methods are replacements for presentModalViewController:animated and dismissModalViewControllerAnimated: The completion handler, if provided, will be invoked after the presented controllers viewDidAppear: callback is invoked.*/@available(iOS 5.0, *)public func presentViewController(viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?)// The completion handler, if provided, will be invoked after the dismissed controller's viewDidDisappear: callback is invoked.@available(iOS 5.0, *)public func dismissViewControllerAnimated(flag: Bool, completion: (() -> Void)?)
* addChildViewController *
If the view belonging to a view controller is added to a view hierarchy directly, the view controller will not receive this message. If you insert or add a view to the view hierarchy, and it has a view controller, you should send the associated view controller this message directly. Failing to send the view controller this message will prevent any associated animation from being displayed
0 0
- 两个小Points
- Points
- points
- points
- 两个小故事
- 两个小故事
- 两个小故事
- 两个小算法题
- ColorAnimation两个小例子
- 两个JSP小技巧
- C++两个小技巧
- 两个小项目
- Jsp两个小技巧
- php两个小问题
- 两个小异常
- 两个小问题
- 两个小问题
- 两个小工程进度
- 第十周-项目三-
- Nuance在iOS中的应用
- java基础2_helloWorld
- CocoaHttpserver初识
- 汽车仿真的一些开发思虑
- 两个小Points
- No mapping found for HTTP request with URI [/index.do] in DispatcherServlet with name 'SpringMVC‘
- Linux文件夹高亮
- 文件存储
- 退出APP时清空栈里所有activity
- 《UVM实战》阅读笔记[前3章]
- 什么是卷积 卷积有什么用
- 第十周 项目1 - 二叉树算法库
- ps命令详解