how to set and access variable values from another classess

Posted by BittenApple on Stack Overflow See other posts from Stack Overflow or by BittenApple
Published on 2010-05-21T16:24:41Z Indexed on 2010/05/21 16:40 UTC
Read the original article Hit count: 172

Filed under:
|

I am modifying QuartzDemo example app and want to do set and read values of integer type variables in other classes which are already included.

For example, in MainViewController.m I want to set a numeric value (simple numbers from 1-100) to a variable which is then going to be called (read) in file QuartzImages.m.

Question is how to define variable properly, set and access (read) the value.

I am a beginner with Obj C and iPhone SDK in general and have some experience with Delphi and VB but this doesn't help at all :)

Thank you, whoever and wherever you are, person who will take me out of this endless googling loop.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk3.2