Guest User

Untitled

a guest
Jul 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. - (void)messageComposeViewController:(MFMessageComposeViewController
  2. *)controller didFinishWithResult:(MessageComposeResult)result
  3. {
  4. if (result == MessageComposeResultCancelled)
  5. {
  6. }
  7. else if (result == MessageComposeResultSent)
  8. {
  9. UIAlertController* noService = [UIAlertController alertControllerWithTitle:@"" message:@"Message Sent." preferredStyle:UIAlertControllerStyleAlert];
  10.  
  11. UIAlertAction* okAction = [UIAlertAction actionWithTitle:@"OK"style:UIAlertActionStyleDefault
  12. handler:NULL];
  13. [noService addAction:okAction];
  14. [self.navigationController pushViewController:noService animated:YES];
  15. }
  16. else
  17. NSLog(@"Message failed");
  18.  
  19. [self dismissViewControllerAnimated:YES completion:NULL];
  20. }
Add Comment
Please, Sign In to add comment