Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 924 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 924 Bytes

MonoTouch.GSFancyText

This is a MonoTouch binding for GSFancyText by Hulu.
GSFancyText is a rich text drawing library for iOS.

Example

First define the styles using a CSS-like string:

var stylesheet = ".green {color:#00ff00; font-weight:bold} .gray {color:gray; font-weight:bold}";
GSFancyText.ParseStyleAndSetGlobal (stylesheet);

Then create a GSFancyText object with a markup string:

var fancyText = new GSFancyText ("<span class=green>Hulu</span> <span class=gray>Plus</span>");

Then you can directly draw this in a customized view:

fancyText.drawInRect (rect);

Or create a GSFancyTextView object to display it

var fancyView = new GSFancyTextView (frame, fancyText);

You can find more examples in GSFancyTextView documentation.