私のスプラッシュ画面は機能していますが、私のアプリは横画面モードで動作し、スプラッシュ画面はデフォルトの縦向きモードで表示されます。iOSでカスタムスプラッシュ画面を回転するにはどうすればよいですか?
私のアプリのようなランドスケープモード間でスプラッシュ画面が回転するようにアプリを起動するにはどうすればよいですか?
私は、次のコードを使用しています:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight)
return YES;
else {
return NO; }
}
とスプラッシュ画面
-(void)displayScreen {
UIViewController *displayViewController=[[UIViewController alloc] init];
displayViewController.view = displaySplashScreen;
[self presentModalViewController:displayViewController animated:NO];
[self performSelector:@selector(removeScreen) withObject:nil afterDelay:3.0];
}
-(void)removeScreen
{ [[self modalViewController] dismissModalViewControllerAnimated:YES];
}
のためにしかし、どのように私は、表示画面内の回転を置くことができますか?
この投稿は本当にXcodeとは関係ありません。だから、私はあなたのタイトルからその言葉を削除しました。 –
がiphoneとipadタグを追加しました。多くの人がfavのものとしてこれを持っており、あなたはより良い視聴回数を得るでしょう –