Skip to content

stampsy/MonoTouch.GSFancyText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A MonoTouch binding for Hulu's GCFancyText

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published