ios 13 设置导航栏背景和分割线颜色

if(@available(iOS13,*)) {

        UINavigationBarAppearance *appearance = [[UINavigationBarAppearance alloc]init];

        appearance.backgroundColor = [UIColor whiteColor];

        appearance.shadowColor = [UIColor clearColor];

        [UINavigationBar appearance].standardAppearance = appearance;

        [UINavigationBar appearance].scrollEdgeAppearance = appearance;

    }

你可能感兴趣的:(ios 13 设置导航栏背景和分割线颜色)