I define a property in the viewcontroller A
@property (nonatomic) BOOL updateOnServer;
and also synthesize it, give it values and then I
You set updateOnServer within viewControllerA, and in viewControllerB you create a new instance of updateOnServer which you haven't set to anything. So it takes the default value of BOOL which is NO.
Kindly look here for possible solution.
You have many ways to do : make the variable global, static, singleton, pass as an argument, post as notification.