UINavigationController Push Crash in Distribution but not Release

Posted by Alavoil on Stack Overflow See other posts from Stack Overflow or by Alavoil
Published on 2010-04-28T13:41:21Z Indexed on 2010/04/28 13:43 UTC
Read the original article Hit count: 271

I have a UINavigationController that I will be pushing a new view onto from selection of a UITableView row. I have tested this feature in "Release" configuration and it works perfectly, however when I build for "Distribution" it crashes when trying to push the new view onto the stack.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    /*
            irrelevant code
    */

    DetailsViewController *detailController = [[DetailsViewController alloc] initWithNibName:@"DetailsViewController" bundle:nil];

    detailController.name = tmpName;
    detailController.time = tmpTime;

    [self.navigationController pushViewController:detailController animated:YES];

    return nil;
}

An exception is thrown on the line where the controller is pushed onto the stack. I have verified that the detailController is not nil. Again, this only happens in my "Distribution" build of the code.

Any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uinavigationcontroller