I have a navigation controller with 2 view controllers, A and B.
A and B both have a property
@property (strong, nonatomic) NSString *string;
string is created in controller A and passed to controller B
ViewControllerB.string = self.string;
[self.navigationController pushViewController:ViewControllerB];
In View Controller B, string is modified and when I pop to View Controller A, the value of string has not changed.
Since they both hold a strong reference to it, shouldn't string be changed in both View Controllers?
Am I missing something?