Objective C: How can you pass integer variables between classes?
So lets say I made a variable in o开发者_如何转开发ne class called 'number' and gave it a value of 3.
and I made a variable in another class called 'number2'
what functions could I use to pass the value of 'number' to 'number2' in that other class?
Thanks.
To get started with Objective-C, including learning how to pass values as method arguments, have a look at Apple's Learning Objective-C: A Primer, Object-Oriented Programming with Objective-C, and Cocoa Fundamentals Guide.
Look up accessor methods on google.
精彩评论