我正在尝试创建自定义警报视图,但在覆盖初始化函数时遇到问题
- (id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ... {
self = [super initWithTitle:title message:message delegate:delegate cancelButtonTitle:cancelButtonTitle otherButtonTitles:otherButtonTitles, nil];
//custom initialisaton
return self;
}
如果有多个标题,我如何使用其他按钮标题?