Re: UiView as slider with inertia
Re: UiView as slider with inertia
- Subject: Re: UiView as slider with inertia
- From: Jonathan Hull <email@hidden>
- Date: Sun, 30 Sep 2018 23:34:46 -0700
What you want is UICollectionView. Make the numbers your cells, and use
-targetContentOffset(forProposedContentOffset:, withScrollingVelocity:) to
provide the snapping behavior.
> On Sep 30, 2018, at 8:46 PM, Eric Dolecki <email@hidden> wrote:
>
> I've been tasked with coming up with a few horizontal sliders that are really
> sequential numbers with the selected value in the middle of the screen. They
> want drag and release with inertia and also rubber banding on the ends.
> Values snap into place. 0 1 2 3 4 5 ...
>
> Does anyone have something like this to save me some time? I'm assuming
> uipangesturerecognizer and some uikit dynamics.
>
> Thanks!!
> Eric
>
> Sent from my iPhone X.
> _______________________________________________
>
> 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
>
_______________________________________________
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