解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移
解决办法1:设置tabBarItem的imageInsets属性
代码示例:
childController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, 5, 0);
2022-11-29 21:00:05
childController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, 5, 0);