ios - 通过标题识别 UIAlertView,但不显示标题

标签 ios cocoa-touch delegates uialertview

我想知道是否可以显示 UIAlertView 而不显示其非 nil 标题。如果标题为nil@"",则不会显示。但在这里,我想使用标题在我的委托(delegate)内部进行分派(dispatch),该委托(delegate)处理所有不同的 UIAlertView 按钮点击。

最佳答案

如果您的委托(delegate)没有指向其负责的 UIAlertView 的指针,您可以使用每个警报 View 的 tag属性,它继承自 UIView,以区分它们。

关于ios - 通过标题识别 UIAlertView,但不显示标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20894480/

相关文章:

c# - 调用/创建委托(delegate)

ios - 将 Pull to Refresh Control 放在 TableView Header 下

ios - 无法将 UILabel 添加到 UICollectionViewCell

ios - 在枚举时修改 NSMutableArray 中的 NSDictionary 项的正确方法是什么?

objective-c - iOS 6,转场 : prepareForSegue doesn't get called when tapping on UITableViewCell at first time

swift - 关闭 ViewController 并重新加载以前的数据/传回数据?

ios - 使用 ABPeoplePickerNavigationController 的委托(delegate)

iphone - 在 XCode 4 中构建静态库奇怪的错误

ios - 从枚举类型 'enum UIViewAnimationOption 到不同枚举类型 uiviewanimation transition 的隐式转换

iphone - sizeWithFont : method 的替代方案