5. 进入二级界面返回时,tabbar出现图片和 文字向上移动错位的解决方案

解决方案: 在AppDelegate中,添加下面代码即可解决

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {


    // iOS12.1 正式版导致的TabBar 里面item错误偏移解决办法
    [[UITabBar appearance] setTranslucent:NO];

    return YES;
}

你可能感兴趣的:(5. 进入二级界面返回时,tabbar出现图片和 文字向上移动错位的解决方案)