1

To wire multiple segues to a single button, I use a method similar to ios - Connect one UIButton to 2 segues, which works fine. The problem is that when I call

[self dismissViewControllerAnimated:YES completion:NULL];

nothing happens. This works fine for me when I had a one to one relationship. But now for whatever reason, the presented VC is not dismissing.

Community
  • 1
  • 1
learner
  • 11,490
  • 26
  • 97
  • 169
  • Is the second seque pushed or it is modal? When i tried to recreate this with storyboard and connected it created one modal segue and the other is push. I had to change it to modal manually. The one that push didn't segue back. – Yan Aug 20 '14 at 03:50
  • @Yan, that's exactly what happened. thanks. – learner Aug 21 '14 at 19:38

0 Answers0