i used the code below in the levelManager.m
to read values from a plist but when I am making an Archive to upload to itunes (AppStore) I get an error. why ?
the code :
- (float)floatForProp:(NSString *)prop {
NSNumber * retval = (NSNumber *) [_curStage objectForKey:prop];
NSAssert (retval != nil, @"Couldn't find prop %@", prop);
return retval.floatValue;
}
the error:
NSAssert undeclared first use
Note I notice that xcode is thinking that I am giving NSAssert 3 parameters instead of 2