gpt4 book ai didi

ios - 我如何 swift 绕过我的应用程序窗口的角落?

转载 作者:行者123 更新时间:2023-12-01 15:55:09 25 4
gpt4 key购买 nike

我正在尝试快速绕过整个应用程序窗口的角落,例如现金应用程序或篝火。我该怎么做?

最佳答案

您可以在 AppDelegate 类中完成

func applicationDidBecomeActive(_ application: UIApplication) {
window?.layer.cornerRadius = 10
window?.clipsToBounds = true
window?.backgroundColor = .white
}

如果你正在使用 SceneDelegate 类,那么

func sceneDidBecomeActive(_ scene: UIScene) {


window?.layer.cornerRadius = 110
window?.clipsToBounds = true
window?.backgroundColor = UIColor.black

// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}

关于ios - 我如何 swift 绕过我的应用程序窗口的角落?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61532658/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com