Reputation: 113
I am trying to insert UIWebview in UIAlertview as I this tutorial did http://codesofa.com/blog/archive/category/iphone with Table, i have tried webview in code but facing exception and my program in terminationg due to it.
Upvotes: 2
Views: 2242
Reputation: 1897
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 like this.
Upvotes: 1