-2

我想在 IOS7 的 UIAlertView 中添加 UILabel。我的代码在 iOS7 更少的版本中运行良好。

4

2 回答 2

0

从 iOS 7 开始,AddSubview 是不可能的。

如何在 iOS 7 的 UIAlertView 中添加子视图?

于 2013-10-10T06:42:02.940 回答
0

在 iOS 7 中,您可以使用

[alertView setValue:customContentView forKey:@"accessoryView"];

完整的解释在这里

于 2014-02-17T10:05:06.877 回答