Quote:
Originally Posted by dab
NSMutableArray *elejokes = [jokes valueForKey:@"elejokes"];
defined elejokes. i was having a problem with it because I capitalized the J there, it should have been lower case like the others.
Its kind of weird, I get that same thing in the same place sometimes (i have no idea why) but it has never prevented the app from running or crashed it or anything like that. so I just ignore it, if you have everything else fixed you should be fine.
EDIT read this-
actually i think you might have something different with the warning, make sure that its like this
fileContents = [[NSBundle mainBundle] pathForResource:@"y" ofType:@"plist"];
NSDictionary *y = [[NSDictionary alloc] initWithContentsOfFile:fileContents];
NSMutableArray *x = [y valueForKey:@"x"];
int randomNumber = arc4random() % [x count];
x = [x objectAtIndex:randomNumber];
[appDelegate setModelData:x];
}
with y as the name of the plist
and x as the name of the array.
if you make sure it is just like this with x and y replaced it SHOULD NOT have a warning.
|
Never mind last post for some reason Interface Builder threw in a UiSearchDisplay controller.