Question

I am working with an iOS developer on a reading log app. When a user manually enters the title of a book into a text field, we have it set so that caps are on for the first letter of the first word of the book title. However I'd also like it set so that after the user types the first word of a book title, and taps on the space bar, caps is automatically turned on again for the first letter of each subsequent word in the book's title. Is there a simple way to code this function, or should I save it for an upgrade when I have more money to spend?

Was it helpful?

Solution

Considering that you can set the capitalization setting to "Word" for any given text field directly from the Interface Builder (so no code is even necessary!) or with one line of code if it's being created automatically, if your iOS developer is charging you for this upgrade, then you're being ripped off.

--Edit: The code would be something like the following, if you wanted to know.--

[bookTitleField setAutocapitalizationType:UITextAutocapitalizationTypeWords];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top