Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)messageComposeViewController:(MFMessageComposeViewController
- *)controller didFinishWithResult:(MessageComposeResult)result
- {
- if (result == MessageComposeResultCancelled)
- {
- }
- else if (result == MessageComposeResultSent)
- {
- UIAlertController* noService = [UIAlertController alertControllerWithTitle:@"" message:@"Message Sent." preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction* okAction = [UIAlertAction actionWithTitle:@"OK"style:UIAlertActionStyleDefault
- handler:NULL];
- [noService addAction:okAction];
- [self.navigationController pushViewController:noService animated:YES];
- }
- else
- NSLog(@"Message failed");
- [self dismissViewControllerAnimated:YES completion:NULL];
- }
Add Comment
Please, Sign In to add comment