Quit Your Job to Build Iphone App
Monday, July 23, 2012
How to Use Function or Method in Xcode for noob
So yeah, I spend a well 20 minute just to learn how to use function or method with parameter
step1: build your function
-(
void
)playerdonate:(
int
) x: (
int
) y
{
}
step2: use your function
[
self
playerdonate
:
50
:
100
];
So there you go, step 1 you build your function with two parameter x and y, void mean return nothing
then on step 2, you use your function with input 50 and 100 as x and y
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment