0

UISplitView を作成しました。splitView がランドスケープ モードで読み込まれた後、presentModalView を使用して modalView を表示します。私の問題は、modalView が常にポートレート モードであり、その解決策が見つからないことです。

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];

それは私に横向きを与えますが、

UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]

ポートレートをくれます。(4.2 未満では動作しません)

ありがとう、

4

1 に答える 1

0

私は NSTimer を使用しており、それとその作業で自分の関数をloasしています。これは少し難しいですが、それが私が今見つけた唯一の解決策です。

[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(loadingModal:) userInfo:nil repeats:NO];
于 2011-02-17T05:31:32.263 に答える