I have a problem with the Storyboard in xCode 4.2. Is it posible to check, if a boolean is true to load the next view or if it is false to do not load the new view an stay in the actual view.
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"toCategory"] && ([[codeField text] isEqualToString:@"1234"]))
{
QuestInfoController *qicontroller = [segue destinationViewController];
}
else
{
[super prepareForSegue:segue sender:self];
return;
}
}