arrays - Variable length parameters in Objective-C -


How can I create an orbit method in Objective-C with variable length parameters?

For example, such a method -ArvithAbject:

  NSArray * array = [NSArray arrayWithObjects: @ "1", @ "2", @ "3", Zero]; What you need is a funidious function A flexible number of these function arguments, like < Code> NSLog ,  [NSArray arrayWithObjects: ...] , etc.  

View this tutorial:

My answer was copied from:

Comments