How to change uiwebview url on button click?

Hi, I think it’s quite simple and we hope that it will be answered in a simple way!

how to change uiwebview url when button is clicked inside?

means that I will have one webview, and every time the button is clicked the URL of the web browser

and reload a new page

thank

+3
source share
1 answer

Do you think this is very simple:

-(void)buttonPressed:(id)sender {
  [webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://website.com/"]]];
}

All of this is very well documented .

+4
source

Source: https://habr.com/ru/post/1782584/


All Articles