I'm working on a project in objective C where i have to modificate some variables which are in a view controller from uiviews.
So i've tried somethings like this :
ViewController.h :
@property (nonatomic) bool Contact;
One of the UIViews :
ViewController * View;
View.Contact = YES;
I've also tried to make a setter method like this in the ViewController :
-(void) SetterContact:(bool)boolean;
And so to modificate from a UIView like this :
[View SetterContact:YES];
But it's looking working. I've read that i have to init the object in which is containt the variable, but in memory management it's not really good to make some initializations from object who are already actives no ? So if View is already init, i'm not going to call the init method from another UIView no ?
Thanks for your help !