I have an Obj-C method similar to this:
-(void)getUserDefaults:(BOOL *)refreshDefaults
{
PostAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
if (refreshDefaults) {
[appDelegate retrieveDefaults];
}
}
When I call it like this I get no warning:
[self getUserDefaults:NO];
When I call it like this I get a warning:
[self getUserDefaults:YES];
warning: passing argument 1 of 'getUserDefaults:' makes pointer from integer without a cast
NOTE: I always call the method passing NO first, then sometime later I pass YES
Can anyone fill me in on what the issue is here? Thanks.