Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Unrecognized selector sent to instance error from Utility App navigation controller view
- - (IBAction)sendMail;
- - (IBAction)sendMail
- {
- if ([MFMailComposeViewController canSendMail])
- {
- MFMailComposeViewController *mfViewController = [[MFMailComposeViewController alloc] init];
- mfViewController.mailComposeDelegate = self;
- [self presentModalViewController:mfViewController animated:YES];
- }
- else
- {
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Status:" message:@"Your phone is not currently configured to send mail." delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil];
- [alert show];
- }
- reason: '-[UIViewController sendMail]: unrecognized selector sent to instance
- MyCustomViewController *controller = [[MyCustomViewController alloc] initWithNibName:@"ExMobSendFeedback" bundle:nil];
- controller.title = @"Feedback";
- [self.navigationController pushViewController:controller animated:YES];
- [controller release];
Add Comment
Please, Sign In to add comment