I'm new to coding and can't find an accurate answer anywhere. I'm trying to make the NSNumber return false if the BOOL is true. Any help? Thanks
static BOOL someBOOL;
%hook (class I want to hook)
-(void)sampleMethod:(NSNumber *)boolNumber
{
if (!someBOOL)
{
[NSNumber numberWithBool:NO];
}
else
{
return %orig;
}
}
%end