dion(現在au)から引っ越ししました

ブログ

20121011日()

iOS6 向き

(チベットと(たぶん)関係ありません)

iOS6 で、デバイスの向きに関連する「shouldAutorotateToInterfaceOrientation」が使えなくなったらしい。
iOS6 では、「supportedInterfaceOrientations」を使うらしい。

xcode 4.5 以降では「supportedInterfaceOrientations」を使えて、
 これの返り値になる「UIInterfaceOrientationMaskPortrait」等が定義されている。
が、
xcode 4.5 よりも前ではその定義が無い。

で、その値:
02 UIInterfaceOrientationMaskPortrait
04 UIInterfaceOrientationMaskPortraitUpsideDown
08 UIInterfaceOrientationMaskLandscapeRight
16 UIInterfaceOrientationMaskLandscapeLeft

24 UIInterfaceOrientationMaskLandscape
26 UIInterfaceOrientationMaskAllButUpsideDown
30 UIInterfaceOrientationMaskAll


2024年3月
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456
by ぱるかん ちゅん ちゅん ParKhang Cyung Cyung དཔར་ཁང་ཆུང་ཆུང་།