You have to implement the Protocol for it. As Protocol is best practice to use in this kind of situation.
Here you can find the document for Protocol.
@protocol MPDateSelectedDelegate
- (void) MDPDateChanged: (NSDate*) date;
@end
@property (nonatomic, assign) id <MPDateSelectedDelegate> delegate;
You can call above delegate method when you change the date:
[self.delegate MDPDateChanged: newDate];
And You have to implement the same method in parent controller like this:
- (void) MDPDateChanged: (NSDate*) date
{
// Do you stuff at here.
// date will hold the new changed date from picker view.
NSLog(@"%@",date.description);
}