site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XrqM3LFpxgknMFFlv18BTneWqZSm7z7CZS5dj5tywik=; b=jf4ThPmlPeX8HD31vMfUL6fDkcThY5TRGKvOnRczi/hfDUF0t5NhYlCB3XqULJV567 P4yFiNWB/10M0qc1RE8aDqpO9Um0WH9QB7wEG27B8kyJwRMPGLy9W5P8yIiBvCzd6FyJ VEPyQ/6e7XPPiXsU2Vibma9qQS4tI1wiZAUlq8P6vqv6rT1y+yzcC8NLbXJnvshTQEgg rgQ5sOj0SirARz59fHAoRnTZBXzNRkmynZ+eTQHUhWMGKt4p6Cz6zl+lmOlysUuMY5GQ nLJ14Weuhtf1/wd4GkPWZxileeVrkziS/nW9L3RzDIaEyLyQXNt2Z+BVw2rbwp0VCugy JtIg== Have an example? Sounds interesting - but I need the control to work like a UIScrollView in a way (the content can go off to the left and right and not flow) | visible | | | 0 1 2 | 3 4 *5* 6 7 | 8 9 | | On Mon, Oct 1, 2018 at 2:34 AM Jonathan Hull <jhull@gbis.com> wrote:
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 <edolecki@gmail.com> 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 (Cocoa-dev@lists.apple.com)
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: https://lists.apple.com/mailman/options/cocoa-dev/jhull%40gbis.com
This email sent to jhull@gbis.com
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com