我在代码端更改了css文件。
当我使用Pixate时它工作得非常好。
我使用Freestyle更新了我的依赖项,我使用updateStylesForAllViews
它不再起作用了。我必须重新启动我的应用程序才能完成任务。
有什么想法吗?
- (void)applyCurrentTheme
{
#if TARGET_IPHONE_SIMULATOR || TARGET_IPAD_SIMULATOR
PixateFreestyle.currentApplicationStylesheet.monitorChanges = YES;
#endif
NSString *filePath = [[NSBundle mainBundle] pathForResource:themeFileName
ofType:@"css"];
[PixateFreestyle styleSheetFromFilePath:filePath withOrigin:PXStylesheetOriginApplication];
[PixateFreestyle updateStylesForAllViews];
}