내 스플래시 화면이 작동하지만 내 앱이 가로 모드로 작동하고 스플래시 화면이 기본 세로 모드로 표시됩니다.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를 가지고 있기 때문에 더 많은 조회수를 얻을 수 있습니다. –