【发布时间】:2013-12-19 20:38:35
【问题描述】:
我正在尝试使用计时器和 segue 制作启动画面,这将在 2 秒后执行。这是我的 SplashScreenClass.m 中的一段代码。怎么了?
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
[NSTimer scheduledTimerWithTimeInterval:2.0
target:self
selector:@selector(performSegue)
userInfo:nil
repeats:NO];
}
-(void)performSegue{
[self performSegueWithIdentifier:@"splash" sender:self];
【问题讨论】:
标签: objective-c nstimer segue splash-screen