Re: Master - Detail: How to get back?
Re: Master - Detail: How to get back?
- Subject: Re: Master - Detail: How to get back?
- From: Roland King <email@hidden>
- Date: Thu, 16 Apr 2015 22:46:10 +0800
> On 16 Apr 2015, at 22:20, Gerriet M. Denkmann <email@hidden> wrote:
>
>>
>> On 16 Apr 2015, at 13:41, Roland King <email@hidden> wrote:
>>
>>
>>>
>>> 5. Run
>>>
>>> iPhone - tapping on "Do & Back" prints:
>>> 2015-04-16 12:16:52.799 Dummi[28069:20737983] -[MasterViewController doSomethingAndBackToMaster:] did something with "2015-04-16 05:16:49 +0000", will do: [<UIStoryboardSegue: 0x79f386e0> perform]
>>>
>>> iPad - tapping on "Do & Back" prints:
>>> nothing.
>>>
>>
>>
>> What did you expect it to do on the iPad?
>
> I expected it to print and then to ignore the segue, because as you say, it makes no sense on iPad.
Ah no - it would only have printed if the segue was run/actioned/whatever you do to a segue. That would only happen if the class implementing the exit segue had been located. Exit segue resolution is something a bit like the responder chain. In this case the class which implemented the segue isn’t in the chain of UIViewControllers on the iPad so it’s not found so it’s not run.
Exit segues are documented however I’ve never found the documentation terribly clear, it does however tell you what methods are called in the search for an exit segue and how the search goes up the chain.
In this case I’d say this ‘works as designed’, the iPad view controller hierarchy is just different from that on the iPhone and the exit segue doesn’t fire.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden