1、iOS15适配导航栏之前的导航栏设置方法失效了,具体原因可以参考详情参考官网,现在需要通过UINavigationBarAppearance方式进行设置:、、、if(@available(iOS15.0,*)){UINavigationBarAppearance*appearance=[[UINavigationBarAppearancealloc]init];[appearanceconfigureWithTransparentBackground];//去除横线appearance.backgroundColor=APP_BLACK_2C2E44_COLOR;//导航栏背景色appea
在自定义设置导航背景色时,使用下面的方法,在iOS15+系统上不起作用:UINavigationBar*appearance=[UINavigationBarappearance];//[appearanceconfi];[appearancesetBarTintColor:[UIColorwhiteColor]];[appearancesetTintColor:[UIColorwhiteColor]];appearance.translucent=NO;NSMutableDictionary*textAttribute=[NSMutableDictionarydictionary];text
1、iOS15适配导航栏之前的导航栏设置方法失效了,具体原因可以参考详情参考官网,现在需要通过UINavigationBarAppearance方式进行设置:、、、if(@available(iOS15.0,*)){UINavigationBarAppearance*appearance=[[UINavigationBarAppearancealloc]init];[appearanceconfigureWithTransparentBackground];//去除横线appearance.backgroundColor=APP_BLACK_2C2E44_COLOR;//导航栏背景色appea
在自定义设置导航背景色时,使用下面的方法,在iOS15+系统上不起作用:UINavigationBar*appearance=[UINavigationBarappearance];//[appearanceconfi];[appearancesetBarTintColor:[UIColorwhiteColor]];[appearancesetTintColor:[UIColorwhiteColor]];appearance.translucent=NO;NSMutableDictionary*textAttribute=[NSMutableDictionarydictionary];text