Reputation: 175
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...)
Upvotes: 0
Views: 111
Reputation: 4078
Make sure of following things
[self performSelectorOnMainThread:@selector(performSegueWithIdentifier:sender:) withObject:@"loginsuccess" waitUntilDone:NO];
Upvotes: 1