Hi all ,I import WebView.h
to my project,and it only has a simple IBOutlet UIWebView *myWebView ;
How to Open a WebView when I press the button in the alert view ?
here is how I define alert view button response
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if ([alertView tag]==0) {
if (buttonIndex == 1)
{
//Open WebView with URL string1
}
if (buttonIndex == 2) {
//Open WebView with URL string2
}
}
}
thanks for all any reply or answer !
note:I can pop up my Webview , but How to init a URL address to the webview I wanna call ?