ios - Animated SVG in UIView -


i need play different animated svg files in uiview. example, this.

is possible, , can tell me how it?

update

with pocketsvg i'm trying (thanks @dhanashree):

- (void)viewdidload {     [super viewdidload];     cgpathref mypath = [pocketsvg pathfromsvgfileaturl:[nsurl urlwithstring:@"http://www.hypnobeast.com/spirals/hypno_beast_spiral_1000x1000.svg"]];      cashapelayer *myshapelayer = [cashapelayer layer];     myshapelayer.path = mypath;     [self.view.layer addsublayer:myshapelayer];    } 

but doesn't work. animated part of svg doesn't appear.

pocketsvg allow display , manipulate lines of svg file.

pocketsvg *mybezier = [[pocketsvg alloc] initfromsvgfilenamed:@"beziercurve1-ipad"];     uibezierpath *mypath = mybezier.bezier;  cashapelayer *myshapelayer = [cashapelayer layer]; myshapelayer.path = mypath.cgpath;  [self.view.layer addsublayer:myshapelayer]; 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -