I'm trying to customize UISearchBar's font through appearance proxy. It works, but somehow, the placeholder text is not centered vertically. I tried to set the vertical alignment property; the placeholder text would get centred but text entered would be slightly below the center line... Is there any way to fix this?
Edit: Code I used to add custom font:
[[UITextField appearanceWhenContainedIn: [UISearchBar class], nil]
setFont: [UIFont customFontWithSize: 17]];


Whenever this happens to me, it is usually caused by some modification to UIAppearance not blending well with UISearchBar. Look at any previous hacks you may have made and perhaps try commenting them out one at a time.
In my particular case it was actually a modification to NSForegroundColor in a text attribute, so this misalignment may be unrelated to your font change.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With