iOS,触摸文本区域时,键盘自动启动

iOS,触摸文本区域时,键盘自动启动,ios,ios6,uikeyboard,Ios,Ios6,Uikeyboard,如你所见,当我触摸文本区域时,键盘升得太高了。知道是什么导致了这个问题吗。如何使键盘粘在屏幕底部 [更新](代码): #导入“ViewController.h” #进口 @接口设置可视控制器() @结束 @实现视图控制器 -(iAction)反馈:(id)发送者{ NSString*iOSVersion=[[UIDevice currentDevice]systemVersion]; NSString*模型=[[UIDevice currentDevice]模型]; NSString*版本=@“

如你所见,当我触摸文本区域时,键盘升得太高了。知道是什么导致了这个问题吗。如何使键盘粘在屏幕底部

[更新](代码):

#导入“ViewController.h”
#进口
@接口设置可视控制器()
@结束
@实现视图控制器
-(iAction)反馈:(id)发送者{
NSString*iOSVersion=[[UIDevice currentDevice]systemVersion];
NSString*模型=[[UIDevice currentDevice]模型];
NSString*版本=@“1.0”;
MFMailComposeViewController*mailComposer=[[MFMailComposeViewController alloc]init];
mailComposer.mailComposeDelegate=self;
[mailComposer setToRecipients:[NSArray arrayWithObjects:@]feedback@example.com“,无]];
[mailComposer设置主题:[NSString stringWithFormat:@“关于应用程序V%@的反馈”,版本]];
NSString*supportText=[NSString stringWithFormat:@“设备:%@\niOS版本:%@\n\n”,型号,iOSVersion];
supportText=[supportText stringByAppendingString:@“请写下您的反馈或建议”];
[mailComposer setMessageBody:supportText isHTML:NO];
[自我呈现视图控制器:mailComposer动画:是完成:无];
}
-(void)mailComposeController:(MFMailComposeViewController*)控制器未完成结果:(MFMailComposeResult)结果错误:(NSError*)错误
{
[自我解除视图控制器激活:是完成:无];
}

这与您的代码无关。用户可以从屏幕底部移动键盘或拆分键盘。作为用户,您完全做到了这一点。作为用户,如果需要,您需要再次向下拖动键盘


你也不会对此采取任何行动,因为这是用户有意选择的行为。对于编写跟踪键盘出现/消失以及将项目移出键盘覆盖区域的代码的人:如果键盘未连接或拆分,或者用户使用硬件键盘,则不会收到有关键盘覆盖区域的通知

这不是默认行为,因此除非您显示一些代码,否则很难确定是什么导致了这种情况。您如何显示视图控制器?嘿,这太奇怪了。胡猜,你在任何地方使用inputAccessoryView吗?@Vrasidas,我已经更新了我的帖子,这就是全部代码。@JoeBlow我没有使用inputAccessoryView。用户无法向下滑动键盘,你仍然会收到硬件键盘的通知,并且ios键盘没有锁定到屏幕底部是默认行为。你尝试过吗?将键盘一分为二->无通知。解锁键盘->无通知。我没说拆分/解锁会给你通知。我说,硬件键盘仍然会发出通知,在iPhone(有问题的设备)上,你不能松开/滑动键盘。
  #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];
   }