2015年09月17日

Xcode7でiOS9向けビルド時にsupportedInterfaceOrientationsで警告が出る場合の対処

Xcode7でiOS9向けビルド時にsupportedInterfaceOrientationsで下記の警告が出る場合、iOS9とそれ以前で切り替える。
"Conflicting return type in implementation of 'supportedInterfaceOrientations': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned long')"

 
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
- (NSUInteger)supportedInterfaceOrientations
#else
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
#endif


参考記事:
https://forums.developer.apple.com/thread/6165
 
 
ラベル:apple iPAD Mac IOS iPhone
posted by mobileDeveloper at 22:28 | Comment(0) | TrackBack(0) | トラブルシューティング | このブログの読者になる | 更新情報をチェックする
この記事へのコメント
コメントを書く
お名前:

メールアドレス:

ホームページアドレス:

コメント:

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。
※ブログオーナーが承認したコメントのみ表示されます。

この記事へのトラックバック