我使用 PixateFreestyle 作为 pod。我可以使用 default.css 文件中的 styleId 设置视图样式。我正在尝试在代码中动态更改样式信息。我试过这个:
self.view.styleCSS = [NSString stringWithFormat:@"{ background-color : #991199; }"];
[PixateFreestyle updateStylesForAllViews];
这没有效果。我也试过:
self.view.styleCSS = [NSString stringWithFormat:@"{ background-color : #991199; }"];
[self.view updateStyles];
这也没有效果。
这可能吗?