This topic created in 3181 days ago, the information mentioned may be changed or developed.
页面先 present 跳转到页面 2。这时候我写了一个 BUTTON 想要 push 到页面 3。发现 push 代码不工作,请问我要怎么做才能 push 出去
(没用 storyboard,页面都是代码写的)
2 replies 2017-09-18 14:55:17 +08:00  | | 1 lion9527 Sep 18, 2017 NavigationController 都没了,肯定不能 push 啊。 |
 | | 2 ostholz Sep 18, 2017 1 试试: 1. 得到页面 2 的 presentingController 2. 上面的 presentingController 获取 navigationController 3. push 不过, 感觉够呛, 即使能 push, 也是不合理.
下确做法是, 页面 2 放到一个 UINavigationController 里, push 页面 3 |