开发者

iphone - handle web page with in the application

开发者 https://www.devze.com 2023-01-16 02:22 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消