在 中的详细视图中UISplitView
,我想将子视图添加到其UINavigationController
子视图中。
我使用 anNSTimer *delayTimer
来延迟子视图的加载,因为我使用动画淡入详细视图。
delayTimer = [NSTimer scheduledTimerWithTimeInterval:1.3 target:self
selector:@selector(loadWelcomeView) userInfo:nil repeats:NO];
我要添加的视图称为welcomeview
- (void) loadWelcomeView
{
NSLog(@"Welcome View Loaded.");
welcomeViewController = [[WelcomeView alloc]
initWithNibName:@"WelcomeView" bundle:nil];
[self.navigationController addChildViewController:welcomeViewController];
}
但是当我运行程序并等待时,它完全是空白的!!!
但是,消息Welcome view loaded.
WAS 显示在调试窗口中。
如果我使用[self loadWelcomeView];
而不是使用NSTimer
,欢迎视图将完美显示。
我做错了什么程序...?