gpt4 book ai didi

iphone - Cocoa Touch - 对话框?

转载 作者:行者123 更新时间:2023-12-03 20:48:47 24 4
gpt4 key购买 nike

我怎样才能在cocoa touch中获得一个简单的基本对话框。看起来很简单,但我可以弄清楚......

谢谢!

最佳答案

您想要 UIAlertView类(class)。例如:

UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Something happened" 
message:@"And here is some more information about what it is."
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[myAlert show];
[myAlert release];

关于iphone - Cocoa Touch - 对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3230566/

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