Re: Animating UICollectionViewCell selection
Re: Animating UICollectionViewCell selection
- Subject: Re: Animating UICollectionViewCell selection
- From: Rick Mann <email@hidden>
- Date: Mon, 23 Jun 2014 16:24:32 -0700
On Jun 23, 2014, at 16:17 , Luke Hiesterman <email@hidden> wrote:
> Because the touch is an instantaneous event, so the selection should show immediately. Similarly, you’ll notice when you select a table cell with touch, the selection does not animate in - it appears immediately.
I suppose that's true. But it sure looks nice when it animates in the selection (provided it's sufficiently fast, like 0.1 s).
>
> Luke
>
> On Jun 23, 2014, at 4:09 PM, Rick Mann <email@hidden> wrote:
>
>> The problem is, I want selection from touch to be animated. Why wouldn't it be?
>>
>> Sent from my iPhone
>>
>>> On Jun 23, 2014, at 16:07, Luke Hiesterman <email@hidden> wrote:
>>>
>>> Collection view will call setSelected: on the cell inside an animation block if the selection is an animated one. A selection from a touch is not animated, but a programmatic selection which does [collectionView selectItemAtIndexPath:path animated:YES scrollPosition:scrollPosition] will result in setSelected: being called in animation block.
>>>
>>> Luke
>>>
>>>> On Jun 23, 2014, at 4:00 PM, Rick Mann <email@hidden> wrote:
>>>>
>>>> Why is there no -[UICollectionViewCell setSelected:animated]? UITableViewCell has this.
>>>>
>>>> But the real problem seems to be that when iOS is handling UICollectionView cell selection, it doesn't set selected on a cell inside an animation block.
>>>>
>>>> Since I don't to participate in the cell-selection process, what's the best way to solve this?
>>>>
>>>> TIA,
>>>>
>>>> --
>>>> Rick
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> 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
_______________________________________________
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