UITabBarController:tab bar 的 image 太大、不清晰的解决方法
2016-08-16 00:59
495 查看
在设置tab bar 的 image 的时候,直接使用60x60px的图标,出现图标过大的问题,查了一下有人说tab bar 需要 30x30 的image ,试了一下,但效果不理想,图片模糊不清晰,重新查找找到解决方法:
Keep 60x60px icons but rename them as iconName@2x.png which iOS will automatically reduce to 30x30 points, roughly to half of the original size on retina devices.
If you are using assets catalogue, please make sure your icons are set to 2x icon sets.
继续使用像素60x60的图标,但需要命名为 iconName@2x.png, 这样命名iOS将自动将图片将为 30x30 points,变为原来一半大小来适应视网膜屏幕的设备。
如果你使用了 assets catalogue,请确保设置 2x 的icon。
Keep 60x60px icons but rename them as iconName@2x.png which iOS will automatically reduce to 30x30 points, roughly to half of the original size on retina devices.
If you are using assets catalogue, please make sure your icons are set to 2x icon sets.
继续使用像素60x60的图标,但需要命名为 iconName@2x.png, 这样命名iOS将自动将图片将为 30x30 points,变为原来一半大小来适应视网膜屏幕的设备。
如果你使用了 assets catalogue,请确保设置 2x 的icon。
相关文章推荐
- UITabBarController+UINavigationController 进入应用只显示一个tab的解决方法
- UITabBarController 隐藏 Bootom Tab Bar
- ios actionsheet 跟 imagepickercontroller冲突的问题解决方法
- 解决UINavigationController+UITabbar跳转页面隐藏tabbar的一种方法
- 系统UITabBarController的tabBar隐藏时显示白条的解决方法
- iphone 开发过程中一些问题的解决方法(MPMoviePlayController)
- LNK1000: Internal error during IncrBuildImage 链接错误解决方法
- FomPanel加到TabPanel中按钮点击失效问题之解决方法
- text,ntext或image节点的页(1:835),槽4不存在的解决方法
- 解决在List中用Bitmap作Image的source时候无法正常显示的方法
- 解决Safari字体显示不清晰的方法
- Image.FromFile方法会锁住文件的解决方法(文件正由另一进程使用,因此该进程无法访问该文件)
- 兄弟MFC-7420 复印彩色单据不清晰,问题解决方法
- 微软CRM4.0表单Tab数量限制解决方法
- 使用easyui 做后台管理界面,在Tab中的链接点击后添加一个新TAB的解决方法
- [iPhone]如何在Tab Bar Controller里面使用ABPersonViewController?
- firefox background-image垂直平铺问题的解决方法
- ExtJs中tabPanel放置iframe无法兼容IE6的解决方法
- text、ntext 和 image 数据类型无效 ( 不允许从数据类型 ntext 到 varchar 的隐性转换) 的解决方法
- opengl红宝书 第8章的代码中readImage()的简单解决方法(Intel 处理器上)