In the UISearchBar control, is the a way to change the Search key title for the keyboard to Done?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
- XCode 4.5 giving me “SenTestingKit/SenTestKit.h” f
As it is a protocol with optional methods, you should test each method separately instead of try-catching.
This will work for iOS <= 6. For iOS >= 7, you need to loop in
searchBar.subviews[0].subviews
.Just for covering all the iOS versions:
Since the Alert-style keyboards are semi-transparent, I can see my view behind it. It doesn't look very good since I have multiple elements behind the keyboard that makes it hard for the keys to stand out. I wanted an all-black keyboard.
So I animated a black UIImageView into position behind the keyboard when text is edited. This gives the appearance of an all-black keyboard.
As of iOS 7 beta 5, Run Loop's answer didn't work for me, but this did:
For a searchbar named tablesearchbar:
At least for iOS 8, simply: