I have a PatientTableViewController on the main side of the iPad, which has a button for adding a new patient. He navigates to this NewPatientViewController through the camp segment.
In NewPatientViewController , I have a Finish button that delegates back to PatientTableViewController :
- (void)newPatientViewController:(NewPatientViewController *)sender withZipCode:(NSNumber *)zipCode andFirstName:(NSString *)firstName andLastName:(NSString *)lastName { [self dismissViewControllerAnimated:YES completion:NULL]; [self dismissModalViewControllerAnimated:YES]; [sender dismissModalViewControllerAnimated:YES]; [sender dismissViewControllerAnimated:YES completion:NULL]; }
None of the methods I tried above work. However, if I use Modal segue, everything works fine. Wat?
source share