Setting the UIImagePickerController delegate throws a warning about UINavigationControllerDelegate
- by synic
The code:
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self.navigationController presentModalViewController:picker animated:YES];
[picker release];
The warning, which shows up on the picker.delegate = self; line:
Class 'CardEditor' does not implement the 'UINavigationControllerDelegate' protocol
Why does the UIImagePickerController care if my class implements the UINavigationControllerDelegate protocol?