1. 程式人生 > >iOS 解決'interfaceOrientation' is deprecated: first deprecated in iOS 8.0

iOS 解決'interfaceOrientation' is deprecated: first deprecated in iOS 8.0

在之前寫的程式碼中出現 'interfaceOrientation' is deprecated: first deprecated in iOS 8.0 警告,是因為iOS8.0之後的適配問題,只需改為

[[UIApplication sharedApplication] statusBarOrientation]

搞定!!!