Objective-C equivalent of a flash action script function -
learning basic objective-c , have few beginner questions. how define , implement method takes 2 (or three) arguments within class? find syntax pass multiple arguments method confusing. appreciate help. thanks.
here's example of simple 2-argument method implementation:
-(int)mymethodthatmultipiesthisnumber:(int)x bythisone:(int)y { return x * y; }
you invoke like:
int z = [myobject mymethodthatmultipliesthisnumber:6 bythisone:9];
is you're looking for?
edit: based on comment below, seems you're missing fundamental feature of objective-c messaging - method name interleaved arguments. check out this page the objective-c programming language detail need.
Comments
Post a Comment