Is it possible to send data from one ViewController to another ViewController where the second ViewController is embedded in a Navigation Controller? (and vice versa)
NOTE: sorry i missed should have aded more details. The problem here is that the app structure goes like this: ViewControllerOne >UINvaigationController> ViewControllerTwo. So i want to pass the data to ViewControllerTwo. i tried to pass it through PrepareForSegue but i receive this error:
-[UINavigationController setString:]: unrecognized selector sent to instance 0x98b71c0
Here is the code:
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
VCC *vc2 = (VCC*)segue.identifier;
vc2.string = @"something";
}