How do I pass multiple parameters in Objective-C?

前端 未结 6 1582
感情败类
感情败类 2020-12-02 04:58

I have read several of the post about Objective-C method syntax but I guess I don\'t understand multiple names for a method.

I\'m trying to create a method called

6条回答
  •  伪装坚强ぢ
    2020-12-02 05:20

    for create method:

    -(void)mymethods:(NSString *)aCont withsecond:(NSString *)a-second {
    //method definition...
    }
    

    for call the method:

    [mymethods:self.contoCorrente withsecond:self.asecond];
    

提交回复
热议问题