I am trying to use NSLog to print console messages. Sometimes the error "EXC_BAD_ACCESS" occurs when calling
-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { NSLog(@"Working test %d", toInterfaceOrientation); NSLog(@"EXC_BAD_ACCESS %@", toInterfaceOrientation); }
Here I just want to see what the arguments passed to the function contain. The first NSLog works great. The second calls "EXC_BAD_ACCESS" and I donβt understand why ?.
Mads Lee Jensen
source share