Presenting view controllers on detached view controllers is discouraged

 本文转载至 http://www.xuebuyuan.com/2117943.html

Presenting view controllers on detached view controllers is discouraged <UINavigationController: 0x14642710>.的解决方法:

 

 [self.view.window.rootViewControllerpresentViewController:controller
animated:YEScompletion:nil];

参考:http://stackoverflow.com/questions/19890761/warning-presenting-view-controllers-on-detached-view-controllers-is-discourage

 

 

Token 'string' not expected before outer-most array or object

原文地址:https://www.cnblogs.com/Camier-myNiuer/p/3992227.html