iPhone: Error when using -(id)initWithNibName

Posted by Nic Hubbard on Stack Overflow See other posts from Stack Overflow or by Nic Hubbard
Published on 2010-05-14T20:08:21Z Indexed on 2010/05/15 9:24 UTC
Read the original article Hit count: 296

I am trying to use the following code, but I always get an error that I can find little information about:

- (id)initWithNibName:@"MyRidesListView" bundle:nil {
    if ((self = [super initWithNibName:@"MyRidesListView" bundle:nil])) {
        // Custom initialization
    }
    return self;
}

Error:

expected identifier before 'OBJC_STRING' token

This seems like a simple method to be calling. This is for a UINavigationController.

Ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk