GenerallyHelpfulSoftware / SVGgh

A framework for using SVG artwork in iOS Apps. Includes a UIView and a button class, printing and PDF export.
MIT License
141 stars 37 forks source link

SVGRenderer with NSData #25

Closed haashem closed 8 years ago

haashem commented 8 years ago

ok, based on your hint the caching library handles fetching my SVG remotely cache it on disk and memory and finally give me object of type NSData, so how can I load SVGRenderer with NSData?

grhowes commented 8 years ago

SVGRenderer descends from SVGParser, and SVGParser has an init method: @implementation SVGParser

-(instancetype)initWithString:(NSString*)utf8String

So use that. You can create an NSString from an NSData object via

haashem commented 8 years ago

you are great man! thanks. please provide this info in your README file