Objective c implement method which takes array of arguments

后端 未结 3 1146
闹比i
闹比i 2021-02-09 04:19

Hee

Does anybody know how to implement an method in objective c that will take an array of arguments as parameter such as:

[NSArray arrayWithObjects:@\"A         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-09 05:05

    I think you're after a variadic function. Here's Apple's documentation: http://developer.apple.com/library/mac/qa/qa2005/qa1405.html

提交回复
热议问题