Hi there I am going through a tutorial "iPhone Programming by The big Nerd Ranch pg305" regarding web services and basically I'm just trying to get myself familiar with NSURLConnection, NSURLRequest and NSURL and how they are used and how they interact with tableViews etc.
I am currently trying to override the designated initializer initWithStyle: but its throwing warnings I haven't seen before, any suggestions of how to fix this warning would be greatly appreciated.
One thing I find interesting is that I have looked at both UIView and UIViewController class refrences on the apple developer library and neither have a method "initWithStyle" is this an error in there book do you think?
I am currently trying to override the designated initializer initWithStyle: but its throwing warnings I haven't seen before, any suggestions of how to fix this warning would be greatly appreciated.
Code:
- (id)initWithStyle:(UITableViewStyle)style {
if (self = [super initWithStyle:style]) { //UIViewController may not respond to '-initWithStyle'
songs = [[NSMutableArray alloc] init];
}
return self;
}
One thing I find interesting is that I have looked at both UIView and UIViewController class refrences on the apple developer library and neither have a method "initWithStyle" is this an error in there book do you think?
Last edited: