This question has probably been asked before so I\'m sorry.
I am working on an iPhone app and lets say I have a variable, var, in class1. I want to add a UIButton in cl
Use a setter method -setVar: or similar on the class that you want to set the variable in. You can't access instance variables of other objects: they are all private by default.