Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I show an UISegmentedControl object in vertical?

Tags:

Is there anyone who can teach me how to show an UISegmentedControl object in vertical direction, instead of in horizontal direction?

like image 290
xeron Avatar asked Aug 16 '10 03:08

xeron


People also ask

When would you use segmented control?

Use a segmented control to provide closely related choices that affect an object, state, or view. For example, a segmented control can help people switch between views in a toolbar.

What is UISegmentedControl in Swift?

The UISegmentedControl object automatically resizes segments to fit proportionally within their superview unless they have a specific width set. When you add and remove segments, you can request that the action be animated with sliding and fading effects.


1 Answers

You can always modify the transform on the segmented control.

segmentedControl.transform = CGAffineTransformMakeRotation(M_PI / 2.0);

like image 84
Ben Gottlieb Avatar answered Oct 02 '22 14:10

Ben Gottlieb