What is the logic of autocapitalizationType and the corresponding global setting?

In the lastest iOS 15 if found the following to be the case regarding the combination of the global autocapitalization setting in the iOS Settings app and the autocapitalizationType property:

| Global setting | autocapitalizationType  | Result (does it capitalize? |
|----------------|-------------------------|-----------------------------|
| on             | Sentences               | yes                         |
| on             | not set                 | no                          |
| off            | Sentences               | no                          |
| off            | not set                 | no                          |

What is the logic behind this?

On a side note, I also believe that in the second row of the above table, we had a 'yes' in earlier versions of iOS.

Answered by Claude31 in 712095022

Logic is that it is a && of the 2 conditions. To turn on, you need to authorize globally in settings which then let you select autocapitalizationType.

Accepted Answer

Logic is that it is a && of the 2 conditions. To turn on, you need to authorize globally in settings which then let you select autocapitalizationType.

Where did you get the table from your original post ?

You could subclass UITextField and set autocapitalization property as you need.

But that is not really simpler than setting directly the property for each field…

Would that fit your need ?

Ok, I got it. Thanks guys!

I somehow was under the impression that globally turned on auto-capitalization was a feature that should be working by default on any text entry field.

What is the logic of autocapitalizationType and the corresponding global setting?
 
 
Q