1.ios attempt to present whose view is not in the window hierarchy
2.Warning: Attempt to present on whose view is not in the window hierarchy!
像这类提示,问题都是在一个controller的view还没加到window上,就开始取present另外一个controller,这样就视乎是在跳着盖楼,是不切实际及的
遇到这样的问题,最直接的办法就是在controller的viewDidAppear里面去调用present,这样可以确保其层次结果有序。
|
|