我可以在Swift 5和IOS 12中以编程方式更改iOS屏幕墙纸吗 [英] Can I change iOS Screen wallpaper programmatically In Swift 5 and IOS 12

查看:92
本文介绍了我可以在Swift 5和IOS 12中以编程方式更改iOS屏幕墙纸吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改iOS 12的主屏幕和锁屏壁纸

I want to change Home Screen and lock screen wallpaper of iOS 12

推荐答案

简短答案:

一句话是不可能的.在Apple设备中,没有提供以编程方式更改iOS屏幕墙纸的措施.用户必须通过设置手动执行此操作,或者照片应用程序.对于更改壁纸之类的事情,您需要越狱设备.

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之前,有一些完美的破解方法.不幸的是,从iOS>9.0别无选择.

Long answer:

Before iOS 9.0, There is some hack which is worked perfectly. Unfortunately, from iOS > 9.0 there is no alternative.

请参阅 CMFWallpaper .也许会对您有帮助.

Refer CMFWallpaper. Maybe it will help you.

使用Apple的设置在iOS上设置墙纸(锁定和/或主屏幕)私有API.请注意,在App Store中包含此代码提交将被拒绝.

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.

这篇关于我可以在Swift 5和IOS 12中以编程方式更改iOS屏幕墙纸吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆