I am having an issue with iOS 7.
The code
[searchBar setImage:[UIImage imageNamed:@"icon_search"] forSearchBarIcon:UISearchBarIconSearch state:UIControlStateNormal];
brings different icon sizes on iOS 6 and iOS 7.
The image size is 29x29 and 58x58@2x and under iOS 6 it's displayed properly, but in iOS 7 it's twice or even more times smaller.
What could be the issue? Thanks!
this seems to work for me:
UIImage* image = [UIImage imageNamed:@"icon_search"];
[[UIImageView appearanceWhenContainedIn:[UISearchBar class], nil] setBounds:CGRectMake(0, 0, image.size.width, image.size.height)];
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