My real problem is i want to pass data from childViewController to parentViewController in storyboard by modal segue.
Code
parentViewController.h
@property (strong, nonatomic)NSMutableArray *address;
childViewController.m
parentViewController *parent=(parentViewController *)self.presentingViewController;
post.address=@"Hello World";
This code throw exception like
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MainTabbarViewController setAddress:]: unrecognized selector sent to instance 0x7fa070e6b910'
storyboard structure
TabbarController-> NavigationController-> parentViewController-> childViewController
Thank you in Advance.