-(void)onTimer
{
mainInt += 1;
if(mainInt == 4)
{
Game2ViewController *gameStart = [[Game2ViewController alloc] initWithNibName: @"Game2ViewController" bundle: nil];
[self presentModalViewController: gameStart animated: YES];
}
}
答案 0 :(得分:0)
-(void)onTimer
{
mainInt += 1;
if(mainInt == 4)
{
[self performSegueWithIdentifier:@"NextView" sender:self];
}
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"NextView"])
{ Game2ViewController *gameStart = [[Game2ViewController alloc] init]; } }