解决iOS中 tabBarItem设置图片(image+title切图在一起)时造成的图片向上偏移
解决办法1:设置tabBarItem的imageInsets属性
代码示例:
childController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, 5, 0);
childController.tabBarItem.imageInsets = UIEdgeInsetsMake(5, 0, 5, 0);
转载于:https://www.cnblogs.com/Jmailbox/p/5063454.html