1、iOS15适配导航栏之前的导航栏设置方法失效了,具体原因可以参考详情参考官网,现在需要通过UINavigationBarAppearance方式进行设置:、、、if(@available(iOS15.0,*)){UINavigationBarAppearance*appearance=[[UINavigationBarAppearancealloc]init];[appearanceconfigureWithTransparentBackground];//去除横线appearance.backgroundColor=APP_BLACK_2C2E44_COLOR;//导航栏背景色appea
URLScheme 通过Xcode13运行的APP,在iOS15系统上会限制info.plist的scheme白名单个数为50个UITableViewsectionHeaderTopPadding 使用UITableViewStylePlain初始化UITableView的时候,会发现sectionheader多出了一截,默认顶部边距为22px。可设置sectionHeaderTopPadding属性修改其默认值。#if__IPHONE_OS_VERSION_MAX_ALLOWED>=150000if(@available(iOS15.0,*)){[UITableViewappea
今天解决了一个困扰我好几天的问题。解决起来很快,关键是复现问题,定位问题太难了。当手机系统时间为24小时制时,没有问题。当手机时间切换到12小时制时,格式化后的时间为nil。NSString*tempStr=@“2022-05-0515:26:09”;NSDateFormatter*formatter=[[NSDateFormatteralloc]init];//这里的yyyy如果写成大写,就会在每年的年底,遭遇一年一次的跨年bug。[formattersetDateFormat:@"yyyy-MM-ddHH:mm:ss"];NSDate*endDate=[formatterdateFromS
在自定义设置导航背景色时,使用下面的方法,在iOS15+系统上不起作用:UINavigationBar*appearance=[UINavigationBarappearance];//[appearanceconfi];[appearancesetBarTintColor:[UIColorwhiteColor]];[appearancesetTintColor:[UIColorwhiteColor]];appearance.translucent=NO;NSMutableDictionary*textAttribute=[NSMutableDictionarydictionary];text
URLScheme 通过Xcode13运行的APP,在iOS15系统上会限制info.plist的scheme白名单个数为50个UITableViewsectionHeaderTopPadding 使用UITableViewStylePlain初始化UITableView的时候,会发现sectionheader多出了一截,默认顶部边距为22px。可设置sectionHeaderTopPadding属性修改其默认值。#if__IPHONE_OS_VERSION_MAX_ALLOWED>=150000if(@available(iOS15.0,*)){[UITableViewappea
今天解决了一个困扰我好几天的问题。解决起来很快,关键是复现问题,定位问题太难了。当手机系统时间为24小时制时,没有问题。当手机时间切换到12小时制时,格式化后的时间为nil。NSString*tempStr=@“2022-05-0515:26:09”;NSDateFormatter*formatter=[[NSDateFormatteralloc]init];//这里的yyyy如果写成大写,就会在每年的年底,遭遇一年一次的跨年bug。[formattersetDateFormat:@"yyyy-MM-ddHH:mm:ss"];NSDate*endDate=[formatterdateFromS
在自定义设置导航背景色时,使用下面的方法,在iOS15+系统上不起作用:UINavigationBar*appearance=[UINavigationBarappearance];//[appearanceconfi];[appearancesetBarTintColor:[UIColorwhiteColor]];[appearancesetTintColor:[UIColorwhiteColor]];appearance.translucent=NO;NSMutableDictionary*textAttribute=[NSMutableDictionarydictionary];text
image.png1、源码入口SpringCloud是基于Springboot的,而Springboot最大的特点就是自动装配:通过SPI机制加载META-INF下的spring.factories文件,来自动的注册一些必要的bean,以达到自动装配的效果。所以我们读SpringCloud各个组件的源码也是从这里直接去找相关jar包下META-INFO下的spring.factories文件,看看自动注册了哪些类的实例。eureka的依赖分为eureka服务端和客户端两部分,我们先从eureka客户端看起。找到这个jar包org.springframework.cloud:spring-clo
image.png1、源码入口SpringCloud是基于Springboot的,而Springboot最大的特点就是自动装配:通过SPI机制加载META-INF下的spring.factories文件,来自动的注册一些必要的bean,以达到自动装配的效果。所以我们读SpringCloud各个组件的源码也是从这里直接去找相关jar包下META-INFO下的spring.factories文件,看看自动注册了哪些类的实例。eureka的依赖分为eureka服务端和客户端两部分,我们先从eureka客户端看起。找到这个jar包org.springframework.cloud:spring-clo
[图片上传失败...(image-a199bd-1659195036496)]最近入门Vue3并完成3个项目,遇到问题蛮多的,今天就花点时间整理一下,和大家分享15个比较常见的问题,基本都贴出对应文档地址,还请多看文档~已经完成的3个项目基本都是使用Vue3(setup-script模式)全家桶开发,因此主要分几个方面总结:Vue3ViteVueRouterPiniaElementPlus一、Vue31.Vue2.x和Vue3.x生命周期方法的变化文档地址:https://v3.cn.vuejs.org/guide/composition-api-lifecycle-hooks.htmlVue