Sunday, 25 August 2013

pass unknown amount of objects using one parameter objective c

pass unknown amount of objects using one parameter objective c

i'm trying to create custom alertView and i'm having problems with
overriding init function
- (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;
}
how can i use other button titles if there is more than one title?

No comments:

Post a Comment