隐藏在iphone 6键盘下的自动纠正

时间:2015-12-16 05:34:44

标签: ios iphone

UITextview的自动校正功能在Iphone5s中完美运行,但它隐藏在iphone 6的键盘后面

在iPhone 5s中按预期工作

works in iPhone 5s

但在iphone 6中不起作用

enter image description here

有没有办法解决这个问题在iPhone 6

1 个答案:

答案 0 :(得分:1)

不,转到财产并更改更正默认或更改为否

编程 目标C:

MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.imageview animated:YES];

    // Set the annular determinate mode to show task progress.
    hud.mode = MBProgressHUDModeAnnularDeterminate;
    hud.label.text = NSLocalizedString(@"Loading...", @"HUD loading title");

    dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
        // Do something useful in the background and update the HUD periodically.
        [self doSomeWorkWithProgress];
        dispatch_async(dispatch_get_main_queue(), ^{
            [hud hideAnimated:YES];
        });
    });

    doSomeWorkWithProgress {
    self.canceled = NO;
    // This just increases the progress indicator in a loop.
    float progress = 0.0f;
    while (progress < 1.0f) {
        if (self.canceled) break;
        progress += 0.01f;
        dispatch_async(dispatch_get_main_queue(), ^{
            // Instead we could have also passed a reference to the HUD
            // to the HUD to myProgressTask as a method parameter.
            [MBProgressHUD HUDForView:self.navigationController.view].progress = progress;
        });
        usleep(50000);
    }
}
斯威夫特:

[textview setSpellCheckingType:  UITextSpellCheckingTypeNo];