How to use UIWebview inside UIAlertView in iphone

I am trying to embed UIWebview in UIAlertview as I did this tutorial http://codesofa.com/blog/archive/category/iphone with a table, I tried webview in code but watched the exception and my program in termg because of it ...

+2


a source to share


1 answer


UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"WebView" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"Ok", nil];
UIWebView *webView = [[UIWebView alloc] init];
[webViewn setFrame:CGRectMake(0,0,80,50)];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"google.com"]]];
[alert addSubview:webView];
[webView release];
[alert show];
[alert release];

      



try to do this.

+1


a source







All Articles