Maybe the following code segment helps:
textfield.enablesReturnKeyAutomatically = YES;
This is publicly available in iPhone SDK in UITextInputTraits. Using this, return key will be disabled when no input text is available within text field.
More Related Contents:
- Getting current device language in iOS?
- Objective C NSString* property retain count oddity
- How can I set the title of a UIButton as left-aligned?
- How to change UINavigationBar background color from the AppDelegate
- Get to UIViewController from UIView?
- Explaining difference between automaticallyAdjustsScrollViewInsets, extendedLayoutIncludesOpaqueBars, edgesForExtendedLayout in iOS7
- How to intercept touches events on a MKMapView or UIWebView objects?
- Remove HTML Tags from an NSString on the iPhone
- Having a UITextField in a UITableViewCell
- How to validate an url on the iPhone
- How to increase the height of navigation bar in Xcode?
- Blank space at top of UITextView in iOS 10
- in iPhone App How to detect the screen resolution of the device
- Connect Objective-C framework to Swift iOS 8 app (Parse framework)
- Xcode 4.5 and iOS 4.2.1 incompatibility
- How to use NSCache
- Core Data – Failed to load optimized model at path
- UITextView – setting font not working with iOS 6 on XCode 5
- Center content of UIScrollView when smaller
- Can I get a NSURL from an XCAssets bundle?
- Need assistance setting two buttons of equal width, side by side Autolayout
- What is the second parameter of NSLocalizedString()?
- Simulator slow-motion animations are now on?
- Getting the Value of a UITextField as keystrokes are entered?
- WatchKit SDK not retrieving data from NSUserDefaults
- UITextView cursor below frame when changing frame
- Code signing is required for product type Unit Test Bundle in SDK iOS 8.0
- Xcode exception breakpoint doesn’t print details of the exception being thrown
- Find UIAlertView without having reference to it iOS 7
- Programmatically get a Storyboard ID?