0

向きをYESに戻すように設定shouldAutorotateToInterfaceOrientationしましたが、iPhoneが回転すると背景も回転することに気付きましたUIImageView. 背景が回転しないように固定するにはどうすればよいですか?

4

1 に答える 1

0

これはうまくいったようです。ランドスケープモードですべてを修正しました。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
于 2010-03-31T05:25:40.340 に答える