I am trying to make a UIWebview on the UIViewController. I want the web view appear only after the web site has been loaded. The UIWebView will then move from the bottom of the screen until half of the screen.
I am new to animation on iOS. May I know how could i do that?
At the moment, i only can get the web view loading the website…
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *fullURL = @"http://www.google.com"; NSURL *url = [NSURL URLWithString:fullURL]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [webView loadRequest:requestObj];
}
In the viewDidLoad: method you have there, add these lines:
Then implement the webViewDidFinishLoad: delegate method, where you insert something like the following: