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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -