I have UITextViewone that should autocapitalize words. However, when I call any of these methods, the view does not respond.
UITextView
[self.fullNameTextView setAutocapitalizationType:UITextAutocapitalizationTypeWords]; self.fullNameTextView.autocapitalizationType = UITextAutocapitalizationTypeWords;
Is this a bug in iOS 8.1?
I had the same problem and I was able to solve it by setting my keyboard type back to DEFAULT:
โ - > . , . . . , .
. ?
, Hardware > Keyboard > Connect Hardware Keyboard (Uncheck) . iOS 8.1 UITextField UITextView.
Hardware > Keyboard > Connect Hardware Keyboard
Edit
. , , :
NSString *myString = @"this is my uncapitalised string"; self.fullNameTextView.text = [myString capitalizedString]
self.fullNameTextView.autocapitalizationType = UITextAutocapitalizationTypeWords;
Note. This will not work if its simulator or auto-capitalization is disabled in the menu "Settings"> "General"> "Keyboard"> "Auto-capitalization" on iOS / iDevice. this solution does not work if auto-correction is disabled for text viewing.
Source: https://habr.com/ru/post/1570082/More articles:Why does invoking a method on a mutable link include "borrowing"? - rustWhy is Dart Datetime.parse not a factory constructor? - dartandroid animation ListView touch animation is gone when onClickListener is on - androidpreg_match_all with callback? - stringCapture current camera image using AVFoundation - iosBash ะฟัะตะฒะดะพะฝะธะผ โ Python 2.7 to Python 3.3 - pythonSymfony best practice: Where to place these constants? - oopMonad Transformer stacks with MaybeT and RandT - randomIn R, change the format of a date object without converting it to a character - dateAmbiguous use of append? - iosAll Articles