iOS - 适配iPad的心路历程
2019-11-04 本文已影响0人
echo海猫
1、首先是要设计师帮你出图,图标和启动图,可在官网找到尺寸表:
图标AppIcon:https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/app-icon/


启动图:https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/

2、tableView的cell显示不完全的问题,出现左右有很大的间距,解决办法:
//设置tableView的属性 cellLayoutMarginsFollowReadableWidth,不让cell自动缩进,属性默认为YES,设置为NO即可
_tableView.cellLayoutMarginsFollowReadableWidth = NO;
3、tabbar点击偏移的问题:
// 解决ipad 点击偏移的问题:设置item的位置模式为充满,在积累的tabbar或者自定义的tabbar设置即可
self.tabBar.itemPositioning = UITabBarItemPositioningFill;
记录问题,持续更新