In the iPhone app, I have a button UITextViewand a button that allows the user to send content UITextViewas a text message. The code is as follows:
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
picker.body = textView.text;
[self presentModalViewController:picker animated:YES];
Everything works fine, except when the message has been sent or Canceled to MFMessageComposer: The keypad for is UITextViewno longer displayed, even if the cursor is blinking .
I tried several things, including [textView resignFirstRepsonder]buttons and buttons in the code -viewDidDisappear. [textView becomeFirstResponder]in the method MFMessageComposeViewControllerDelegateor -viewDidAppearnothing has changed ...
Any ideas?
source
share