In Objective-C:
textField.enabled = NO;
In Swift:
textField.isEnabled = false
Reference: UIControl.isEnabled
More Related Contents:
- UITextField format in xx-xx-xxx
- UITextField in UITableViewCell Help
- How to know if a UITextField in iOS has blank spaces
- How to know if a UITextField in iOS has blank spaces
- how to save the data in sqlite3 in iphone
- How to create image from NSDATA to UIIMAGE asynchronously [duplicate]
- Get push notification while App in foreground iOS
- How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)
- Faster alternative to glReadPixels in iPhone OpenGL ES 2.0
- Display clearColor UIViewController over UIViewController
- Adding iOS UITableView HeaderView (not section header)
- GCD, Threads, Program Flow and UI Updating
- Reducing the space between sections of the UITableView
- Universal iPhone/iPad application debug compilation error for iPhone testing
- iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock
- NSData and Uploading Images via POST in iOS
- How should I store UIImages within my Core Data database?
- Re-Apply currency formatting to a UITextField on a change event
- Drawing Smooth Curves – Methods Needed
- CALayers didn’t get resized on its UIView’s bounds change. Why?
- Using Objective C to read log messages posted to the device console
- How to subclass UINavigationBar for a UINavigationController programmatically?
- How can I add a badge to a standard UIButton? [closed]
- NSDateFormatter, am I doing something wrong or is this a bug?
- How to add a push pin to a MKMapView(IOS) when touching?
- How to create subscript characters that’s not in Unicode in iOS
- UITableView with images scrolls very slowly [duplicate]
- How to find out what profile was used for building *.ipa file?
- Is there any length limit of string stored in Keychain?
- Temporarily Lock or Disable iphone home button