gpt4 book ai didi

iphone - 如何将 UIWebView 放入 UIAlertView 中?

转载 作者:搜寻专家 更新时间:2023-10-30 20:01:16 25 4
gpt4 key购买 nike

我尝试使用以下代码将 WebView 添加到 AlertView:

- (void)viewDidLoad {
search = [[UIAlertView alloc] initWithTitle:@"title" message:@"iGoogle" delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:@"Search", nil];
[search addSubview:googleView];
googleView = [[UIWebView alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[search show];

[search release];

[super viewDidLoad]; }

仍然,只有 AlertView 显示,没有 WebView。另外,我在哪里可以获得有关添加 CGRectMakes 等内容的更多详细信息?

最佳答案

尝试在 googlview 分配后添加 [search addSubview:googleView];...

关于iphone - 如何将 UIWebView 放入 UIAlertView 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6186878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com