Re: Collection view loses selection between segue and push
Re: Collection view loses selection between segue and push
- Subject: Re: Collection view loses selection between segue and push
- From: Rick Mann <email@hidden>
- Date: Thu, 31 Dec 2015 16:12:45 -0800
Ah, nevermind. The delegate is getting set and not reset properly.
> On Dec 31, 2015, at 15:56 , Rick Mann <email@hidden> wrote:
>
> I have a collection view in a navigation controller, and a custom animation for the push. When I click on a cell, the segue fires, and prepareForSegue uses the current collection view selection to determine what cell was tapped. Then the animation delegate method is called, and it does the same thing.
>
> Then I pop.
>
> Then I tap another cell (or the same one). Once again, the segue fires, and is able to use the collection view's selection to determine the cell that was tapped. Then the animation delegate method is called, and now the selection is empty.
>
> I can, of course, save off the selected sell in prepareForSegue, but which this inconsistency? Just more bugs from Apple?
>
> --
> Rick Mann
> email@hidden
>
>
>
> _______________________________________________
>
> 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
--
Rick Mann
email@hidden
_______________________________________________
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