Cookies Cookies - 11 days ago 5
iOS Question

Segue from A to C by including B

Is it possible to segue from

A
to
C
but including
B
in the navigation stack? So if I were to dismiss
C
I'd get back to
B
?

I've looked around and didn't find anything that explains this.. I tried solving it with
NSNotificationCenter
but didn't work very well.

Answer

easy

A [self.navigationController pushViewController:B animated:NO];

B - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController pushViewController:mYEKCollectionViewController animated:YES]; }