Example:
@interface myVC:UIViewController <UIWebViewDelegate>
{
}
@end
// assume webViewToLoad IBOutlet
[webViewToLoad setDelegate:self];
// implement methods of delegate
-void webViewDidStartLoad: (UIWebView *) webview
{
NSLog(@"started loading...");
}
-void webViewDidFinishLoad: (UIWebView *) webview
{
NSLog(@"finished loading...");
}
No comments:
Post a Comment