I am subclasing UIAlertView. I would like to implement a init method with the following signature:
- (id)initWithTitle:(NSString *)title
message:(NSString *)message
identifier:(NSInteger)ident
delegate:(id)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles,...
It is just the default UIAlertView method with an added param identifier
.
- (id)initWithTitle:(NSString *)title
message:(NSString *)message
delegate:(id)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles,...
What is the correct syntax now to invoke the super method if I don't know in compile time what my init method otherButtonTitles
params will be?
self = [super initWithTitle:title
message:message
delegate:delegate
cancelButtonTitle:cancelButtonTitle
otherButtonTitles:otherButtonTitles, nil];
//I will only get the first param with this syntax