I created a special keyboard with a keyboard for my iOS application, but I want it to more accurately reflect the look of a standard keyboard. I am looking for tips on how to make a standard UIButton image and act like standard keyboard buttons.
In particular, I need to figure out the following for the iPad and do as much as possible in xib or storyboard.
- Button Size
- Keyboard background color (or even better, how can I determine this myself?)
- Button background color
- Font and color of the text in the button
- How to add a shadow under a button?
- How can I highlight a button with gray instead of blue?
- Button Spacing
- How to save a “group” of buttons centered as a whole when changing orientation? (all resizing options bind it to the side, and not to each other).
Do they use standard image buttons or change standard UIButton? Or in a more appropriate way, what is better for us to do?
UPDATE:
I created a project for the numeric keypad, which is a complete working example. However, I did not spend much time on the actual appearance, and this was the main question. I posted it on Github and made it an open source project (which is licensed by MIT, so commercial use is allowed). I hope other people find this useful, and hopefully others will feel inclined to help make it better and more like a native keyboard. The Github repository is located at:
https://github.com/lnafziger/Numberpad
source
share