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年2月
28293031123
45678910
11121314151617
18192021222324
252627282912
by ぱるかん ちゅん ちゅん ParKhang Cyung Cyung དཔར་ཁང་ཆུང་ཆུང་།