Re: Vertical orientation of UISlider

2016-07-20 Thread Quincey Morris
On Jul 20, 2016, at 12:20 , Carl Hoefs wrote: > > The transform works; it rotates the control about its center point. I just checked, and the iOS HIG says that sliders are horizontal. The UISlider class reference says that sliders are "always displayed as

Re: Vertical orientation of UISlider

2016-07-20 Thread Carl Hoefs
Out of interest, I just tried swapping the slider's bounds size.width and size.height. It seems to have no effect. The transform works; it rotates the control about its center point. Thx! -Carl > On Jul 20, 2016, at 12:11 PM, Jens Alfke wrote: > > >> On Jul 20, 2016, at

Re: Vertical orientation of UISlider

2016-07-20 Thread Jens Alfke
> On Jul 20, 2016, at 12:02 PM, Carl Hoefs > wrote: > > I was looking for the obvious, a simple property like slider.orientation or > some such. In AppKit, an NSSlider’s orientation is determined simply by whether its bounds rectangle is longer than it’s

Re: Vertical orientation of UISlider

2016-07-20 Thread Jeff Kelley
Reminds me of the old days before UICollectionView, where you could have table view cells scroll horizontally by embedding a rotated table view in each cell, then rotating the child table view’s cells in the opposite direction. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan

Re: Vertical orientation of UISlider

2016-07-20 Thread Carl Hoefs
Something like this? slider.transform = CGAffineTransformMakeRotation(M_PI * 0.5); I was looking for the obvious, a simple property like slider.orientation or some such. -Carl > On Jul 20, 2016, at 11:55 AM, Jeff Kelley wrote: > > Hi Carl, > > Have you

Re: Vertical orientation of UISlider

2016-07-20 Thread Doug Hill
A rotate transform will work fine if you don't have any customizations. For example, a thumb, min/max image will end up being rotated as well, so you'll need to transform those too. Doug On Jul 20, 2016, at 11:55 AM, Jeff Kelley wrote: > > Hi Carl, > > Have you

Re: Vertical orientation of UISlider

2016-07-20 Thread Jeff Kelley
Hi Carl, Have you tried applying a transform to the slider? A simple rotation should do the trick. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan | jeffkelley.org > On Jul 20, 2016, at 11:48 AM, Carl Hoefs

Vertical orientation of UISlider

2016-07-20 Thread Carl Hoefs
iOS 9 Is there a way to change the orientation of a UISlider to vertical instead of horizontal? -Carl ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the