Pixate updateStylesForAllViews在更新为PixateFreestyle后无法正常工作

时间:2014-04-21 09:18:21

标签: ios css pixate

我在代码端更改了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];
}

0 个答案:

没有答案