Methods with multiple arguments in objective C

前端 未结 3 694
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-29 12:46

If you take this method call for instance(from other post)

- (int)methodName:(int)arg1 withArg2:(int)arg2
{
    // Do something crazy!
    return someInt;
}
         


        
3条回答
  •  醉梦人生
    2021-01-29 13:29

    withArg2 is part of the method name (it is usually written without arguments as methodName:withArg2: if you want to refer to the method in the documentation), so no, it is not used for anything inside the method.

提交回复
热议问题