I have this code:
- (BOOL)logInViewController:(PFLogInViewController *)logInController shouldBeginLogInWithUsername:
(NSString *)username password:(NSString *)password
{
NSLog(@"anything");
return false;
}
and if I run it then I get this bug in some assembly code: "Thread 1: EXC_BAD_ACCESS (code = 2, address = 0x1a). If I change the code to:
- (BOOL)logInViewController:(PFLogInViewController *)logInController shouldBeginLogInWithUsername:
(NSString *)username password:(NSString *)password
{
NSLog(@"anything");
return NO;
}
I do not get that bug. However, in both cases nothing is printed to the terminal. This doesn't make sense to me because if that code causes the bug, then shouldn't that area be read by the computer, and therefore the NSLog should be called? So confused. So I guess my question is why isn't anything printed to the terminal and also why does the change to NO make the bug go away? I wouldn't think their difference would cause the bug? Why does it?
Edit: Really sorry y'all. The above code had nothing to do with my error. Apologies.