Does anyone know how to get button images and gradients for ipad custom keyboard? I would like these buttons to look like buttons on the system keyboard, but with their different text. I have background gradient values ββand I can create a CGGradient (and subsequently UIImage) to get the background. The problem is that when I try to set the background of UIButton as UIImage, I get a square button. I thought the image would fill the rounded rectangular part of the rounded rectangular button, but that is not the case.
Does anyone know how to make these buttons? I guess I can get png for each button, but that just seems silly.
Thank!
source
share