What are the proper dimensions for a UIBarButtonItem‘s landscapeImagePhone image?
What are the proper dimensions for a UIBarButtonItem ‘s landscapeImagePhone image?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This has not been documented in the “iOS Human Interface Guidelines”:
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
here is my choice: resize the normal portrait image to (17, 17), and use it as the landscapeImagePhone image. You can adjust the (17, 17) size to whatever you want until it looks good, but it should not larger than the standard portrait barButton Image size (20, 20).
Note: for the resizedImage method of UIImage, you can find a lot UIImage catalog on GitHub, I use this git: https://github.com/mbcharbonneau/UIImage-Categories
you can remove the UIImage+Alpha and UIImage+Resize since we do not need them