I want to pass value and display from ViewController1 to ViewController2, when I go to ViewController2. The data did not display on the view. But I check po data.odrNum it has the value in it.
ViewController1
ViewController2 *data = [[ViewController2 alloc] init];
data.odrNum = [respondData valueForKey:@"orderCode"];
ViewController2.h
@property (strong, nonatomic) NSString *odrNum
;
ViewController2.m
self.orderConNum.text = self.odrNum;
And this is the way I present my ViewController2
UIStoryboard * storyboard = self.storyboard;
OrderDetailsViewController *detail = [storyboard instantiateViewControllerWithIdentifier: @ "OrderDetailsViewController"];
[self.navigationController pushViewController:detail animated:YES];