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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -