Objective c 启动屏幕、segue和计时器出现问题

Objective c 启动屏幕、segue和计时器出现问题,objective-c,nstimer,segue,splash-screen,Objective C,Nstimer,Segue,Splash Screen,我正在尝试制作一个带有定时器和segue的闪屏,它将在2秒后执行。这是我的SplashScreenClass.m中的一段代码。怎么了 - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. [NSTimer scheduledTimerWithTimeInterval:2.0

我正在尝试制作一个带有定时器和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];

在苹果的人机界面指南中,建议不要使用闪屏。您的应用可能会因此而被拒绝。

使用计时器解决此问题不是最佳解决方案。我建议在延迟之后执行选择器。它很容易使用。只需将这一行放在viewDidLoad方法中

[self performSelector:@selector(performSegue) withObject:nil afterDelay:2];

谢谢,但这怎么可能实现呢?尽管有人机界面指南?仅仅从理论上讲?我在几个应用程序中使用过闪屏,而且每个应用程序都通过了苹果公司的审查。重要的是它们不能持续太长时间,这是行不通的。Xcode显示了相同的问题“thread1:SIGABR信号”,这一行应该没有问题。也许你的故事板和序列有一些问题。可能是什么问题?