是否有一个视图控制器可以使用标准操作将当前照片或图像设为壁纸?
我花费了大量时间寻找一个视图控制器,该控制器将调出 UIActionSheet 以使当前图片成为壁纸(类似于用于在电子邮件中发送图像的控制器:MFMessageComposeViewController )。我注意到,在developer.apple.com iOS库文档中,如果我只输入“壁纸”一词,则不会出现任何文档此外,我读到没有Apple批准的设置锁定屏幕的方法,例如例如,以编程方式......但我认为会有一个 ActionSheet 委托,它允许我们在应用程序中制作照片,而不是设置和照片(或相机),壁纸 - 就我而言,我想制作它是锁定屏幕。
有一些方法可以邮寄照片、打印照片和彩信(我认为),但是除了苹果应用程序之外,是否没有“批准”的方式进入“用作壁纸”操作表对话框?让我们可以选择仅告诉用户导航出当前应用程序并使用“设置”或“照片”(如果我们将当前照片保存到相机胶卷或照片库)......
您怎么说?任何有关如何实现这一目标的线索或提示将不胜感激。
I've spend an inordinate amount of time searching for a view-controller that will bring up the UIActionSheet to make the current picture the wallpaper (similar to the one used to send an image in an email: MFMessageComposeViewController). I noticed that in the developer.apple.com iOS library documentation not a single doc comes up if I just type the word "wallpaper" Furthermore, I've read that there are no Apple-approve methods of setting the lock-screen, for example, programmatically.... But I thought that there would be an ActionSheet delegate that would allow us to make a photo in an App, other than Settings and Photos (or Camera), a wallpaper-- in my case I want to make it the Lock-screen.
There are methods to mail the photo, print it, and MMS (I think), but is there just no "approved" way to go into the "Use as Wallpaper" action sheet dialog from apps other that Apple apps? Leaving us with the option of just telling the use to navigate out of the current app and use either Settings or Photos (if we save the current photo to the Camera Roll or Photo Library) ...
What say you? Any leads or hints on how to accomplish this will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,iOS SDK 中没有此类功能。您需要将照片保存在相册中,然后用户只能从默认照片应用程序将照片设置为壁纸。
No there is no such kind of functionality available in iOS SDK. You need to save photo in photo album then from only default photos application a user can set a photo as wallpaper.