3

I want to show keyboard when mail composer open without take any action.i mean when mail composer open automatically keyboard should display.

Robin
  • 10,011
  • 5
  • 49
  • 75
Ankit Vyas
  • 7,507
  • 13
  • 56
  • 89
  • I haven't tested it, but have you tried `[mailComposer becomeFirstResponder];`? I don't think it'll work, but it's worth a shot... – Aurum Aquila Feb 22 '11 at 05:48
  • i have tried it but not working if you have any other idea please. – Ankit Vyas Feb 22 '11 at 06:09
  • check this link http://stackoverflow.com/questions/1376120/how-to-pull-up-a-uikeyboard-without-a-uitextfield-or-uitextview/1389780#1389780 – Ankit Vyas Feb 22 '11 at 07:05

1 Answers1

3

This isn't possible as far as I know. You might be able to traverse the views of the mailComposer to find the appropriate text field but that is a risky thing to do and liable to break.

Plus it might get your app rejected. Although it's not exactly clear. From the MFMailComposeViewController Class Reference:

Important: The mail composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is not allowed to make further changes to the email content. The user may still edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields before presenting the interface.

Domestic Cat
  • 1,434
  • 11
  • 18