我試着用下面的代碼:但我只是簡單的沒有webview的警報視圖。我應該在哪裏糾正以獲得正確的輸出?如何在UIAlertView中添加UIWebview?
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Next Action"message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
UIWebView *webView = [[UIWebView alloc] init];
[webView setFrame:CGRectMake(0,0,300,300)];
[webView loadHTMLString:[@"https://app.acuityscheduling.com/schedule.php?owner=11673736" description] baseURL:nil];
[alert addSubview:webView];
[alert show];
看到此鏈接可能是幫助你http://stackoverflow.com/questions/20737426/how-to-insert-the-uitextview-into-uialertview-in-ios –