Use setEnabled:forSegmentAtIndex:
method to enable and disable the segments.
[segmentedControl setEnabled:NO forSegmentAtIndex:0];
if you want to disable the first segment.
Related Contents:
- How do I draw a shadow under a UIView?
- How to detect iPhone 5 (widescreen devices)?
- iOS 7 Navigation Bar text and arrow color
- Get push notification while App in foreground iOS
- Xcode 4 says “finished running ” on the targeted device — Nothing happens
- Display clearColor UIViewController over UIViewController
- Resize UIImage by keeping Aspect ratio and width
- position: fixed doesn’t work on iPad and iPhone
- NSDefaultRunLoopMode vs NSRunLoopCommonModes
- Storyboard – refer to ViewController in AppDelegate
- Is it possible to determine whether ViewController is presented as Modal?
- Navigation bar appear over the views with new iOS7 SDK
- Removing viewcontrollers from navigation stack
- Click Event on UIImageView programmatically in ios
- How to write a BOOL predicate in Core Data?
- Can’t launch my app in Instruments: At least one target failed to launch
- iOS Image Orientation has Strange Behavior
- iOS – How to implement a performSelector with multiple arguments and with afterDelay?
- Disabling vertical scrolling in UIScrollView
- Ignore certain exceptions when using Xcode’s All Exceptions breakpoint
- How do I switch UISegmentedControl programmatically?
- iOS: Using UIView’s ‘drawRect:’ vs. its layer’s delegate ‘drawLayer:inContext:’
- how to use sendAsynchronousRequest:queue:completionHandler:
- Dynamically setting layout on UICollectionView causes inexplicable contentOffset change
- How can I find the device uuid’s of all connected devices through a command line script?
- UIButton title alignment and multiline support
- How to stop the Observer in NSNotification to called twice?
- How to handle app URLs in a UIWebView?
- Determining codesigning identities from the command line?
- didSelectRowAtIndexPath: not being called
- Drawing Smooth Curves – Methods Needed
- What is the difference between Objective-C automatic reference counting and garbage collection?
- More iCloud Core Data synching woes
- Prevent iPhone from zooming form? [duplicate]
- Share image/text through WhatsApp in an iOS app
- Forwarding UIGesture to views behind
- iOS 4.2+ webfont (ttf) ‘s bold font-weight rendering bug
- UISegmentedControl deselect (make none of the segments selected)
- Contex Drawing + Pagination
- NSGenericException’, reason: ‘Push segues can only be used when the source controller is managed by an instance of UINavigationController
- How to download image with AFNetworking 2.0?
- How to unselect a uitableview cell when the user returns to the view controller
- Playing system sound without importing your own
- Easy way to disable a UITextField?
- Removing a view controller from UIPageViewController
- Xcode 4 Tips and Tricks for Xcode 3 users [closed]
- iOS: Why can’t I set nil to NSDictionary value?
- How to test production push notifications?
- What is the proper way to detect if code is running on the main thread in Objective-C? (iOS) [duplicate]
- How to parse a date string into an NSDate object in iOS?