Christian Tietze

  • Posts
  • Books
  • Apps
  • Work With Me
  • Contact

More Swifty NSAttributedString Attribute Query Methods

Mar 9th, 2022

NSAttributedString API takes an NSRange by-reference. That’s cumbersome to use, though, because you need to initialize a non-nil range, and there you should initialize it with NSNotFound to indicate an illegal state. Afterwards, you need to check if the range changed to a legal value.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • nsattributedstring
    • nstextstorage

Contact • Newsletter • blog post feed
Become an affiliate • Legal Information • Twitter

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.