有没有以编程方式从Pixate获取值的方法?我希望能够获得特定id、类或元素的CSS值。
发布于 2014-07-22 22:32:44
这里有一个关于如何获得视图色调颜色的示例。当然,任何属性名称都会起作用。
PXStylesheet *currentSheet = [PixateFreestyle currentApplicationStylesheet];
PXRuleSet *rules = [currentSheet ruleSetsMatchingStyleable:view][0];
PXDeclaration * decl = [rules declarationForName:@"-ios-tint-color"];
UIColor *color = decl.colorValue;有几件事要注意,
https://stackoverflow.com/questions/22520870
复制相似问题