gpt4 book ai didi

ipad - 为什么 iOS7 中的 UIAlertController 收到 nil 值?

转载 作者:行者123 更新时间:2023-12-02 09:26:21 25 4
gpt4 key购买 nike

为什么 iOS7 中的 UIAlertController 在需要呈现时收到 nil 值,但在 iOS8 中工作得很好,我可能知道这是因为 iOS7 不支持 UIAlertController 类吗?

UIAlertController *view=[UIAlertController
alertControllerWithTitle:@"Hello"
message:nil
preferredStyle:UIAlertControllerStyleAlert];

[self presentViewController:view animated:NO completion:nil];

最佳答案

这些类仅在 iOS8 及更高版本中可用。请参阅class reference

关于ipad - 为什么 iOS7 中的 UIAlertController 收到 nil 值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26710018/

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