hi i guess this is pretty simple and hope it will be answered in a easy manner!
大家好,我想这很简单,希望大家能轻松回答!
how do i change the url of the uiwebview when a button is touched up inside?
当一个按钮被点击时,如何更改uiwebview的url ?
meaning to say i will have a single web view and everytime a button is clicked the URL of the webview
意思是说我将有一个单一的web视图,每次点击一个按钮,webview的URL
changes and a new page is reloaded
更改和重新加载一个新页面
thanks
谢谢
1 个解决方案
#1
4
As you suggest, it's very easy:
正如你所说,这很简单:
-(void)buttonPressed:(id)sender {
[webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://website.com/"]]];
}
This is all very well documented.
这些都有很好的文献记载。
#1
4
As you suggest, it's very easy:
正如你所说,这很简单:
-(void)buttonPressed:(id)sender {
[webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://website.com/"]]];
}
This is all very well documented.
这些都有很好的文献记载。