This is a basic textkit example moslty derives from this blog post. http://cocoafactory.com/blog/2012/10/29/how-to-use-custom-nsattributedstring-attributes/