I define a property in the viewcontroller A
@property (nonatomic) BOOL updateOnServer;
and also synthesize it, give it values and then I try to access this variable from another viewcontroller B like this
A * view = [[A alloc] init];
if (view.updateOnServer)
but it isn't working. updateOnServer is always NO.
Does anybody have an idea on how to solve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…