Working with UISegmentedControl class in iOS @techytube
Working with UISegmentedControl class in iOS  @techytube
Uploaded October 2012 | Updated September 2026, 2 weeks ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
techytube.com/author/pavel

A UISegmentedControl object is a horizontal control made of multiple segments, each segment functioning as a discrete button. A segmented control affords a compact means to group together a number of controls.
A segmented control can display a title (an NSString object) or an image (UIImage object). 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.

The way we configure a segmented control can affect its display behavior:
- If we set a segmented control to have a momentary style, a segment doesn't show itself as selected (blue background) when the user touches it. The disclosure button is always momentary and doesn't affect the actual selection.
- In versions of iOS prior to 3.0, if a segmented control has only two segments, then it behaves like a switch—tapping the currently-selected segment causes the other segment to be selected. On iOS 3.0 and later, tapping the currently-selected segment does not cause the other segment to be selected.

For more details, please visit Apple's Online Documentation at:

developer.apple.com/library/ios/#documentation/uikit/reference/UISegmentedControl_Class/Reference/UISegmentedControl.html
Working with UISegmentedControl class in iOSWindows 8 Development - XAML Blog Reader Code Review / Await KeywordUser And Group Administration On Linux Part 4 of 4Maintanence Plans in SQL ServerWorking with UITextField objects in iOSWindows 8 Development - Loading State With Navigation ParametersHow to programmatically set images in iOS.NET 2.0/Winforms Multithreading with GUI ElementsWindows 8 Development - C# IntroductionWindows 8 Development - Javascript Split ControlRPM (Redhat Package Manager) Part 3 of 3Windows 8 Development - Javascript Event Handlers
techytube |

Working with UISegmentedControl class in iOS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER