ios - 我可以在 Swift 5 和 IOS 12 中以编程方式更改 iOS 屏幕壁纸吗

标签 ios swift imageview wallpaper

我想换iOS 12的主屏和锁屏壁纸

最佳答案

简答:

In one word it is not possible. In Apple devices, There is no provision for the change iOS Screen wallpaper programmatically. The user has to do that manually through the settings or photos app. For things like changing wallpapers, you'd need to jailbreak your device.

长答案:

在 iOS 9.0 之前,有一些 hack 可以完美地工作。不幸的是,从 iOS > 9.0 开始,别无选择。

引用CMFWallpaper .也许它会对你有所帮助。

Set the wallpaper (lock and/or home screen) on iOS using Apple's private API. Please be aware that including this code in an App Store submission will result in a rejection.

关于ios - 我可以在 Swift 5 和 IOS 12 中以编程方式更改 iOS 屏幕壁纸吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56112014/

相关文章:

android - 如何使位图适合圆角正方形?

android - 视频未在 fragment ViewPager 中暂停

java - 找不到“RoutingHTTPServer/RoutingConnection.h”文件

ios - 如何在委托(delegate)函数中关闭 alertview - (void)alertView :(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

ios - 如何快速返回 UIView View 及其 subview ?

xcode - 从一个文本字段输入文本到多个标签(在 swift 中)

ios - 如何使用 cloudkit 查询获取 Assets 名称

swift - 无法使用 SWXMLHash 从 Webservice 解析 XML

java - Android 中位图的 inJustDecodeBounds

iphone - uibutton未显示何时选择新的uiviewController