UIWebView loads a local file for a long time

Posted by Knodel on Stack Overflow See other posts from Stack Overflow or by Knodel
Published on 2010-04-18T14:55:43Z Indexed on 2010/04/18 15:03 UTC
Read the original article Hit count: 290

Filed under:
|

I have a UIWebView which loads .rtfd.zip files like this:

-(void)viewWillAppear:(BOOL)animated {
self.title=@"Title";
if(rowPosledovatelnosti==0) {
    [self loadFile:@"PosledovatelnostiObzie.rtfd.zip"];
}
if(rowPosledovatelnosti==1) {
    [self loadFile:@"Arifmeticheskaya.rtfd.zip"];
}
if(rowPosledovatelnosti==2) {
    [self loadFile:@"Svojstva_Arifmeticheskoj.rtfd.zip"];
}
if(rowPosledovatelnosti==3) {
    [self loadFile:@"Geometricheskaya.rtfd.zip"];
}
if(rowPosledovatelnosti==4) {
    [self loadFile:@"Predel_Posledovatelnosti.rtfd.zip"];
}
if(rowPosledovatelnosti==5) {
    [self loadFile:@"Summa_Geometricheskoy.rtfd.zip"];
}

}

But on the device it takes some time for the UIWebView to load the content. Is there any way to optimize the loading time?

© Stack Overflow or respective owner

Related posts about uiwebview

Related posts about iphone