i'm currently working on iphone app which h开发者_运维知识库as a web view. i'm pulling a web page from internet and updating the web view. the web page has 3 text inputs: username, mail id and response code. it also has a button "play now". on click of play now, the data is posted to server and some processing is done there...... now,in my application, on click of "play now", i want to remove the web view and show my next view in application. can you please help me to achieve this or some solution for this problem?
You can use the webview delegate
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
You can retrieve the URL of the request from the request parameter of the method. Check whether it matches the URL of play now button.
精彩评论