I have got two view controllers. Im trying to pass data to the previous viewcontroller
I have the following code in my second view controller CEPeoplePickerNaviga
Your code seems absolutely correct but to get around all the possibilities. Can you check whether your done button action has a check to know if the delegate methods is available or not in that class?
if ([self.viewCrtrlDelegate respondsToSelector:@selector(previousViewController:item:)]) {
[self.viewCrtrlDelegate previousViewController:self item:@"Here I am"];
[self dismissViewControllerAnimated:YES completion:nil];
}
else{
NSLog(@"Your delegate was properly set");
}