Tim
Tim

Reputation: 175

Segue not working (anymore)?

I do not know much about segues but I've got it working.. but suddenly it doesnt work anymore....

My code seems to work but the segue doesn't happen:

NSLog(@"login started");
if ([user_temp]) {
    NSLog(@"login success!");
    [self performSegueWithIdentifier:@"loginsuccess"];
}

Console output:

2015-01-31 21:35:27.321 Vertretungsplan[6753:3122243] login started
2015-01-31 21:35:27.321 Vertretungsplan[6753:3122243] login success!

but the segue doesn't appear? (It's just a snippet,I reduced the code...)

enter image description here

Upvotes: 0

Views: 111

Answers (1)

Abubakr Dar
Abubakr Dar

Reputation: 4078

Make sure of following things

  1. Identifier is valid.
  2. You are performing segue on main thread.
    [self performSelectorOnMainThread:@selector(performSegueWithIdentifier:sender:) withObject:@"loginsuccess" waitUntilDone:NO];

Upvotes: 1

Related Questions