1

When a user of mine types text into a UITextView, I would like the caps lock modifier to be set to true so that if they subsequently press the caps lock button it will switch to lower-case text.

What I would like to see is the keyboard's caps button in blue when the UITextView becomes the first responder. I can't find the right setting in the docs or SO.

Bryce
  • 6,440
  • 8
  • 40
  • 64
OWolf
  • 5,012
  • 15
  • 58
  • 93
  • 3
    When a question is asked 2 YEARS AFTER the "duplicate", especially when iOS changes so rapidly, it should NOT be considered a duplicate. When are we going to get version tags? – leanne Feb 23 '16 at 00:59

1 Answers1

-2

try this one

-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    NSString *newString = [[text1.text stringByAppendingString:string] uppercaseString];
    text1.text = newString;
    return NO;

}
Agent Chocks.
  • 1,312
  • 8
  • 19
  • 3
    Thanks, but I think this will capitalize the text, not set the caps lock on the keyboard. – OWolf Jul 20 '13 at 05:53