Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8994685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:29:16+00:00 2026-06-15T23:29:16+00:00

I’ve got this code working well for months (on iOS 5.1), but I didn’t

  • 0

I’ve got this code working well for months (on iOS 5.1), but I didn’t check it for a long time and now (probably iOS 6.0 issue) I’ve noticed that my MFMailComposeViewController doesn’t show the keyboard even when focusing textfields like message body or recipients.

The strange thing is that it reacts on taps, so i can set cursor on ‘To’ or ‘Subject’ and the cursor appears, or I’m able to hold the tap to make the zooming glass pop up. But no keyboard 🙁

SCREENSHOT OF THIS

Here’s the code I’m using:

MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init];
mailer.mailComposeDelegate = self;        
[self presentModalViewController:mailer animated:YES];

I’ve been searching a lot about this and found something that deals with
[self resignFirstResponder] or [mailer becomeFirstResponder], but it didn’t work.

If I add this code before or after presenting controller

NSLog(@"mailer become %d", [mailer canBecomeFirstResponder]);

It shows 0, however, the

NSLog(@"self resign %d", [self resignFirstResponder]);

shows 1, but it was 0 too before i added the

- (BOOL)canResignFirstResponder {
    return YES;
}

Docs say it should return YES by default, so it’s double strange.

If I create an empty project with such code it works well, but I can’t really do this because my current project is quite huge.
Any help would be appreciated, getting stuck here…

Tested both on iPhone and iOS Simulator (both deployment target 5.1 and 6.0)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:29:17+00:00Added an answer on June 15, 2026 at 11:29 pm

    Just LOL. The problem was with the

    [UIApplication sharedApplication] delegate] window] setWindowLevel:UIWindowLevelStatusBar + 1]
    

    somewhere in my app. Seems like they changed keyboard windowLevel in iOS 6, so that now it’s behind. I’m quite lazy to do so, but it would be interesting to know exact windowLevel of the keyboard window 🙂
    Be careful with that!

    Thanks to everyone for helping anyway!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this
i got an object with contents of html markup in it, for example: string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.