Skip to content

Instantly share code, notes, and snippets.

@arturlector
Last active February 3, 2016 09:19
Show Gist options
  • Save arturlector/b767493cccbdfab36941 to your computer and use it in GitHub Desktop.
Save arturlector/b767493cccbdfab36941 to your computer and use it in GitHub Desktop.
Предиктивный набор

Предиктивный набор (Предсказательный)

You may disable the keyboard suggestions / autocomplete / QuickType for a UITextView which can block the text on smaller screens like the 4S as shown in this example

with the following line:

myTextView.autocorrectionType = UITextAutocorrectionTypeNo;

enter image description here enter image description here

And further if youd like to do this only on a specific screen such as targeting the 4S

if([[UIDevice currentDevice]userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
    CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
    if (screenHeight == 568) {
        // iphone 5 screen
    }
    else if (screenHeight < 568) {
       // smaller than iphone 5 screen thus 4s
    }
}

Предиктивный набор

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment