objective c - How to associate iOS keyboard "go" button with UIButton? -
I have a search bar in my I enable it And how would it be to add about this way? To make it clear, the search bar and next buttons were created in the storyboard, not programmatic. or As a second thing, Ghobs has said that you can find here ... Source for the above code: SearchViewController , and currently, when they type in If no go button, it only shows back to show me in the keyboard, a Go button, and I want to call it
- I want to connect to (IBAction) button: (ID) sender I have connected the current Next
UIButton under the search bar
[textField setReturnKeyType: UIReturnKeyGo];
- (zero) setReturnKey {// use condition here (field not empty) self.searchField.returnKeyType = UIReturnKeyGo; }
Comments
Post a Comment