Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tatsuro-ueda/3329885 to your computer and use it in GitHub Desktop.
Save tatsuro-ueda/3329885 to your computer and use it in GitHub Desktop.
【セグエ】2つのセグエを連続して実行するには

I tried to move segue continually, but I failed, too.

So I tried to set interval between first segue and second segue for one second.

ss

This works well ! When you push button in red window, green window appears, and after it, blue window appears automatically.

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    [self performSelector:@selector(segue) withObject:nil afterDelay:1.0];
}

- (void)segue
{
    [self performSegueWithIdentifier:@"toBlue" sender:self];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment