UIwebview loader on iphone -


this code works fine , show activityindicator loading , hide after loading lets if on loading stage , go apps quit , how avoid this

if go withiut site loaded quits ( think activityindicator culprit)

**

- (void)webviewdidstartload:(uiwebview *)webview {     [activityindicator startanimating];    // mylabel.hidden = false; } - (void)webviewdidfinishload:(uiwebview *)webview {     [activityindicator stopanimating];     activityindicator.hideswhenstopped=true;     //mylabel.hidden = true; } // implement viewdidload additional setup after loading view, typically nib. - (void)viewdidload {      self.title=@"kkh website";      [super viewdidload];     nsurl *requesturl = [nsurl urlwithstring:@"http://www./index.html"];     nsurlrequest *requestobj = [nsurlrequest requestwithurl:requesturl];     [aww loadrequest:requestobj];      } 

** updates

if link uiwebview delegate fileowner creating isuee , need delegate since want show loading

i forgot release webview :( [aww release]; fixed


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -