Disable iOS8 Quicktype Keyboard programmatically on UITextView
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;
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
}
}
Disable iOS8 Quicktype Keyboard programmatically on UITextView
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;
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
}
}
How to know if predictive keyboard is ON/OFF in iOS8?
You should observe UIKeyboardWillShowNotification
. The value of the key UIKeyboardFrameEndUserInfoKey
will contain the frame of the keyboard regardless of its layout.
iOS 8 Xcode how to remove QuickType on UIKeyboard ( auto complete / auto suggest )
You can set the autocorrectionType to NO. Its an existing iOS property so won't break in any previous/current versions of iOS;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
Disable iOS8 Quicktype Keyboard programmatically on UITextView
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;
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
}
}
Disable iOS8 Quicktype Keyboard programmatically on UITextView
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;
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
}
}
Related Topics
Change Language in the App Programmatically in iOS
Is It Considered a Private API to Use App-Prefs:Root
Uitableview and Uiview with Keyboardwillshow
How to Post String with Special Character and Thai Language Using Xml Parsing in Objective C
How to Test If a String Is Empty in Objective-C
How to Disable Back Swipe Gesture in Uinavigationcontroller on iOS 7
How to Create a Uiview Bounce Animation
Dynamically Changing Font Size of Uilabel
How to Play a Sound Using Swift
How to Initialize/Instantiate a Custom Uiview Class with a Xib File in Swift
How to Hide Keyboard in Swift on Pressing Return Key
How to Assign an Action for Uiimageview Object in Swift
Custom Uitableview Section Index
Tutorial for Slcomposeviewcontroller Sharing
Ble Peripheral Disconnects When Navigating to Different Viewcontroller