iphone - UIActivityIndicatorView Not disappearing -


this seems simplistic issue, literally cannot working.

i have section of app takes user webview displaying site. part of built in 'browser' experience want uiactivityindicator located let user know site loading. when done want indicator disappear.

at minute, activity indicator animates, keeps animating forever , not stop or disappear.

the code using in .h follows;

@interface appsupportwebsite : uiviewcontroller <uiwebviewdelegate> {      iboutlet uiactivityindicatorview *activityindicator;  }  @property (nonatomic, retain) uiactivityindicatorview *activityindicator;  @end 

and within .m file have following; (abbreviated show activity indicator specific code)

@synthesize activityindicator;   - (void)webviewdidstartload:(uiwebview *)webview {     [activityindicator startanimating];  }  - (void)webviewdidfinishload:(uiwebview *)webview {     [activityindicator stopanimating]; } 

i have created activity indicator within interface builder , through files owner connected activityindicator iboutlet white activity indicator through ib wont disappear.

select ur activity indicator

cmd+1

select "hide when stopped"

check ur webview.delegate=self;

- (void)webviewdidfinishload:(uiwebview *)webview {      nslog(@"finished");      [self.activityindicator stopanimating];  } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -