Posts tagged with flickering issue

  • Prevent UIWebView white flashing issue

    Recently have this problem in my project. Take me a while to resolve the issue. I was loading UIWebView and execute some Javascript to dynamically update the local HTML.

    Send command to webview

    NSMutableDictionary* jsonDit = ***; // create a dictionary here 
    
    // use SBJSON to convert dictionary to a JSON. use this to escape the string
    
    // this json will be executed by the page
    
    NSString *js = [[NSString alloc]initWithFormat:@"setHtml(%@);", [jsonDit JSONRepresentation]  ];
    
    [self.webview stringByEvaluatingJavaScriptFromString:js];
    
    

    Fix...

    Read More