Question

As you can see in this image, the keyboard is going up too high when I touch the textarea. Any idea on what's causing this particular problem. How can I make the keyboard stick to the bottom of screen ?

[UPDATE] (code):

  #import "ViewController.h"
    #import <MessageUI/MessageUI.h>
    @interface SettingsViewController () <MFMailComposeViewControllerDelegate>
    @end
    @implementation ViewController
    - (IBAction)feedBack:(id)sender {
    NSString *iOSVersion = [[UIDevice currentDevice] systemVersion];
    NSString *model = [[UIDevice currentDevice] model];
    NSString *version = @"1.0";
    MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc] init];
    mailComposer.mailComposeDelegate = self;
   [mailComposer setToRecipients:[NSArray arrayWithObjects: @"feedback@example.com",nil]];
   [mailComposer setSubject:[NSString stringWithFormat: @"Feedback about App V%@",version]];
   NSString *supportText = [NSString stringWithFormat:@"Device: %@\niOS Version:%@\n\n",model,iOSVersion];
   supportText = [supportText stringByAppendingString: @"Please write your feedback or suggestions"];
   [mailComposer setMessageBody:supportText isHTML:NO];
   [self presentViewController:mailComposer animated:YES completion:nil];
   }
    - (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:    (MFMailComposeResult)result error:(NSError *)error
   {
   [self dismissViewControllerAnimated:YES completion:nil];
   }

No correct solution

OTHER TIPS

That has nothing to do with your code. The user can move the keyboard from the bottom of the screen or split it. You have done exactly that as the user. You, as the user, need to drag the keyboard down again if that's what you want.

And you don't do anything about it, because it is behaviour that the user intentionally chose. For people who write code that keeps track of the keyboard appearing / disappearing and moving items out of the area covered by the keyboard: If the keyboard is undocked or split, or if the user uses a hardware keyboard, you will get no notifications about the area covered by the keyboard.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top