iOS16适配

Q1:

The status bar window cannot be accessed from within an application

A:
iOS16中,将无法再通过_statusBarWindow获取到状态栏window,注释或切换其他方式实现需求

// [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"]

Q2:

/Users/XXX/Pods/Pods.xcodeproj error project: Signing for "XXX" requires a development team. Select a development team in the Signing & Capabilities editor.

pod选择好证书即可

Q3:
iOS快捷最低版本升级至11.0

Podfile


post_install do |installer|
  installer.pods_project.targets.each do |target|
    puts "#{target.name}"
    target.build_configurations.each do |config|
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0
         config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
      end
    end
  end
end

Q4:
新增特性:URLComponents会基于是否传入了参数、即使传入空字典也会自动拼接上一个"?"

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容