1. 程式人生 > >解決interfaceOrientation is deprecated:first deprecated in ios8.0

解決interfaceOrientation is deprecated:first deprecated in ios8.0

使用他人程式碼中出現下面的警告,需要將該方法改為如下所示:

interfaceOrientation is deprecated:first deprecated in ios8.0

[[UIApplication sharedApplication] statusBarOrientation]