In Objective-C:
textField.enabled = NO;
In Swift:
textField.isEnabled = false
Reference: UIControl.isEnabled
Related Contents:
- Programmatically change UITextField Keyboard type
- How to set UITextField height?
- Indent the text in a UITextField
- iPhone how to get UITextField’s text while typing?
- How to dismiss number pad keyboard by tapping anywhere
- How can I show the numeric keyboard by default on iPhone?
- Proper way to renew distribution certificate for iOS
- How can we programmatically detect which iOS version is device running on? [duplicate]
- Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
- Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?
- ‘Missing recommended icon file – The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120×120′ pixels, in .png format’
- Setting Corner Radius on UIImageView not working
- Animate change of view controllers without using navigation controller stack, subviews or modal controllers?
- UIWebView background is set to Clear Color, but it is not transparent
- Convert NSData to String?
- How to build a framework or library for other developers, the secure way? [closed]
- How to get UITableView from UITableViewCell?
- UIPageViewController: return the current visible view
- iOS unique user identifier [duplicate]
- What major ASIHTTPRequest features is AFNetworking missing?
- Getting a list of files in the Resources folder – iOS
- Converting NSData to NSString in Objective c
- What is the iOS 5.0 user agent string?
- How do I replace weak references when using ARC and targeting iOS 4.0?
- Xcode 5 and iOS 7: Architecture and Valid architectures
- How to find out what profile was used for building *.ipa file?
- How can I animate the movement of a view or image along a curved path?
- iOS SDK – Programmatically generate a PDF file
- First letter in UiTextField lowercase
- UISegmentedControl text programmatically
- How to reach the current selected cell in didSelectRowAtIndexPath?
- What exactly does bool parameter do in animateWithDuration:animations:completion:
- How to stop the execution of tasks in a dispatch queue?
- Designing in landscape with Storyboards
- How to manage Enterprise Distribution certificate expiration?
- Open a facebook link by native Facebook app on iOS
- [UILabel copyWithZone:]: unrecognized selector sent to instance
- Correct way to save/serialize custom objects in iOS
- How to hide Textbox Keyboard when “Done / Return” Button is pressed Xcode 4.2
- UIView did appear?
- Difference between two NSDate objects — Result also a NSDate
- What does yellow tinting represent when using “color misaligned images” on iPhone/iOS
- Control cursor position in UITextField
- Want to display a 3D model on the iPhone: how to get started? [closed]
- When to use restoreCompletedTransactions for in-app purchases?
- Grand Central Dispatch (GCD) vs. performSelector – need a better explanation
- Animating custom-drawn UITableViewCell when entering edit mode
- How to use custom fonts in iPhone SDK? [duplicate]
- How do I scroll to a position programmatically in UIScrollView
- iphone app: how to renew an expired distribution certificate through the iOS provisioning portal