0

I change css files at code side. It was working very well when i use Pixate. I updated my dependencies with Freestyle and i use updateStylesForAllViews it does not work anymore. i have to restart my application to get things done. Any idea ?

- (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];
}
Alkimake
  • 1,797
  • 14
  • 30
  • did you solved your problem ? – John Smith Jun 05 '14 at 14:54
  • yes, you need to change window style `self.window.styleMode = PXStylingNormal;` at `- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions` – Alkimake Jun 06 '14 at 06:55

0 Answers0