swift 适配低于 iOS 13 的手机

本文介绍了如何在Xcode 12环境下,解决新建项目因SceneDelegate导致的在iOS 13以下版本编译错误问题。通过在相关方法前添加@available(iOS 13.0, *)进行版本控制,并提供了适配低版本iOS的AppDelegate窗口属性设置和SceneDelegate的处理方案。" 124894159,9298498,aiohttp session持久化:解决异步关闭报错问题,"['Python', '爬虫', 'aiohttp', '开发语言']
摘要由CSDN通过智能技术生成

Xcode: Xcode 12
新建项目会多出 SceneDelegate.swift 文件,AppDelegate中也会多出两个方法

	func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
   
        // Called when a new scene session is being created.
        // Use this method to select a configuration to create the new scene with.
        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
    }

    func application(_ application: UIApplication, didDiscardSceneSe
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值