UITextView subclass which supports inline tokens and puncutational corrections.
This was designed for one particular use case (which the demo utilizes). It should support many others as well, however it wouldn't surprise me if the API did not work well for other models. The base is here, however, so even if it feels like the API is way off, it's doable for your sitaution most likely (when I say base, I mean the string management, basically. 'Cause that's pretty solid, pretty much anything can be wrapped around it.) Feel free to nudge me about issues that you have and absolutely do not hesitate to fork and submit a pull request.
- Add this as a submodule.
- Drag the project into your workspace or project.
- Add it as a linked library in Target Settings.
- Configure your header search paths to include the text view. See the demo for an example of how to assign a relative path to the actual code so you can import it like a standard library.
- Enjoy token-y punctutationally-correct UITextView goodness.