내 두 UIController간에 전환 효과를 추가하려고합니다. 그들 사이의 전환 완벽하게 작동하지만 좋은 전환 효과를 추가하고 싶습니다.UIViewController와 UITabBarViewController 사이에 전환 효과 추가
이 내 AppDelegate.m
@implementation LaMetro_88AppDelegate
@synthesize window = _window;
@synthesize tabBarController = _tabBarController;
@synthesize LoadingViewController = _LoadingViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window.rootViewController = self.LoadingViewController;
[self.window addSubview:tabBarController.view];
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(changeView) userInfo:nil repeats:NO];
[self.window makeKeyAndVisible];
return YES;
}
-(void)changeView
{
self.window.rootViewController = self.tabBarController;
}
이 코드는 컨트롤러와의 작업을 잘 사이의 스위치를 수행합니다.
대단히 감사합니다! 네, 응용 프로그램의 로딩 상태를 시뮬레이트하는 회 전자와 함께 스플래시 화면 뒤에 로딩보기를 수행하려고합니다. 첫 번째 줄을 올바르게 제공 한 코드 아이디어는 "presentViewController"대신 두 번째 "presentModalViewController"이어야하며 "completition :^{}"는 생략해야합니다. 시간 내 줘서 고마워! –
도움이 되니 기쁩니다. SDK> = 5.1에서 presentModalViewController는 더 이상 사용되지 않으며 내가 제안한 호출로 대체되었습니다. – danh