I'm trying to get through the UIWebView tutorial and everything compiles with no errors but the screen on the emulator is all black. I'm wondering if it has something to do with the Tutorial being done on the beta version of SDK and I'm using the latest. I dont see a Cocoa template so I used the Window-Based Application to start, would this have anything to do with it possibly? I know this is likely a newbie issue but any help would be greatly appreciated.
First, You should use a "VIEW" based template. This provides a view that is already set up for you. Then it is as simple as dragging on a web view, and then creating an outlet for it in your view controller's subclass.
- (void)webViewDidStartLoad: (UIWebView *)webView
{
// starting the load, show the activity indicator in the status bar
[UIApplication sharedApplication].isNetworkActivityIndicatorVisible = YES;
NSLog(@"Yes started");
}
- (void)webViewDidFinishLoad: (UIWebView *)webView
{
NSLog(@"Yes finished");
// finished loading, hide the activity indicator in the status bar
[UIApplication sharedApplication].isNetworkActivityIndicatorVisible = NO;
}
Everything is compiling and but finally when run, it goes to the 'webViewDidStartLoad' but waits there endlessly for 'webViewDidFinishLoad'..
im doing something a lil more complex that involves a view with buttons that opens a view with a webview, the webview loads the correct site but the indicators still dont work
Last edited by truehybridx; 10-13-2009 at 02:32 AM.