0
votes

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?

1
Ha! The upgrade would hopefully include more than this one feature!bradfdlad
I think I should have said 'update' not 'upgrade', but that is very funny, Marc!bradfdlad
Sounds pretty challenging to edit the text field settings itself. What would be more plausible would be an interpretation once a search is entered. So... they type in 'the game of thrones', and it shows in the search as 'The Game of Thrones'Meshach
This wouldn't be for a book search, Meshach, but for when the user is entering the book title manually.bradfdlad

1 Answers

0
votes

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];