ios - SVGKit how to enumerateChildLayersUsingBlock? -
using svgkit, looking sample code on how utilize enumeratechildlayersusingblock method.
i found code this:
calayer *f = [document layertree],*x; for(int = 0; < [f.sublayers count]; i++) { x=(calayer*)[f.sublayers objectatindex:i]; if([x iskindofclass:[cashapelayer class]]) { // work. } } it not illustration of enumeratechildlayersusingblock usage,but need. that'll @ to the lowest degree while. dig more subject when need recursive.
ios svg
No comments:
Post a Comment