跳至主要内容

博文

目前显示的是 十一月, 2019的博文

iOS LaunchScreen 图片更换后不生效的问题

参考链接: http://arsenkin.com/launch_screen_image_cache.html https://blog.csdn.net/qq_30932479/article/details/78689286 https://www.jianshu.com/p/c12246bd326d 1.  Solution Again, thanks to the thread I have referenced above I found a way to solve this issue - name your new image differently from the one there was before in case your new one has the same name as the old one and put it  out of the *.xcassets folder to the project directory and reference it in your  UIImageView . And that's it. Sound stupid easy but oh gawd how much rage I had. 2. 目前已知的可行办法是,启动图不要放在Assets.xcassets里边(放在Assets.xcassets里边如果更改了启动图Set的名字,会出现启动的时候白屏),启动图放到外边的文件夹下,并且每次更新启动图的时候使用不同的名字,这样每次更换启动图后就,启动的时候就会使用新的启动图。 如果之前使用的是LaunchScreen,之后换成LaunchImage,那LaunchImage设置的启动图一定是无效的,因为LaunchScreen的优先级高于LaunchImage,没有什么好的解决办法,除非删应用,重启,重装应用。 3. 项目里使用的Launch Screen来设置启动图,在原来的基础上更换了一张图片后运行发现启动图没有更新成功,在网上找了两天,总结一下: 1,使用Launch Screen这种方式设置启动图后,再转换成images.xcassets方式设置新的,启动页不会更改。 2,使用images...

CLOUDFLARE指定IP集合-电信联通和移动线路友好的CLOUDFLARE IP

原文链接 参考链接 有朋友使用了cloudflare Partner,发现可以自己指定IP,这里有几个相对于电信联通和移动线路友好的 cloudflare IP集合: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 108.162.236.1/24 联通 走美国 172.64.32.1/24 移动 走香港 104.16.160.1/24 电信 走美国洛杉矶 --------- 172.64.0.0/24 电信 美国旧金山 104.20.157.0/24 联通 走日本 104.28.14.0/24 移动 走新加坡   (联通移动推荐节点)   104.23.240.0-104.23.243.254   (电信推荐百度云合作ip)   162.159.208.4-162.159.208.103   162.159.209.4-162.159.209.103   162.159.210.4-162.159.210.103   162.159.211.4-162.159.211.103 节点速度比较快的有: 1 2 3 4 104.20.157.2 104.18.62.2 141.101.115.3 104.16.160.3 百度云加速与Cloudflare合作节点还有: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 162.159.211.4-103 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 104.16.0.0/12 108.162.192.0/18 131.0.72.0/22 141.101.64.0/18 162.158.0.0/15 172.64.0.0/13 173.245.48.0/20 188.114.96.0/20 190.93.240.0/20 197...