1
我正在使用Uinavigationcontroller作爲Windows根視圖控制器。在其他一些視圖中,我呈現viewcontroller,但我的應用程序在iOS 8中崩潰。它在ios7中工作得很完美。它說iOS 8- viewController my_shouldAutorotate崩潰而presentViewController
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'-[InfoVC my_shouldAutorotate]: unrecognized selector sent to instance 0x15cd42780'.
其中InfoVC是viewcontroller。什麼是my_shouldAutorotate
在你InfoVC類寫下面的方法: - (BOOL)shouldAutorotate { 返回NO; } – 2016-01-16 15:04:34
謝謝@ChanchalRaj ...我想知道你爲什麼不把這張貼作爲答案。 – UsamaMan 2016-02-09 10:08:58