How to change lock screen image for the iPhone using swift - iphone

I am making an app using Swift and plan to release it to the apple store. Is there any way to change the lock screen image automatically when you are not on the app by allowing certain permissions?
Thanks!

sadly, there is no access to the lock screen image!

Related

iOS - setting the lock screen image

I'm planning to use the MPNowPlayingInfoCenter API to set an image on the lock screen.
Can I do this without actually playing any audio? It's only the lock screen image that I want to change.
If I can do it technically do you think Apple will let it into the app store?
You are not supposed to change the lock screen image programmatically unless you are not planning to release it as an internal app.
No. Even if you manage to do it, your app will not be accepted by Apple.

Iphone lock screen application

friends I am new to iphone development, I have mostly worked with Android, now I have to develop a small clock for Iphone which should be shown on lock screen like following app
http://itunes.apple.com/us/app/weather-lock-screen-free/id433369569?mt=8
just a start idea how can i place an app at iphone lock screen since i have already created the (analog ) clock, thanks for your help
Faisal
This app doesn't actually set the background of the lock screen. It asks the user to save an image, then the user has to set the image as the background for the lock screen manually.
There is no API to do what you want.

PNG within an iPhone app

I have the following issue:
My iPhone app makes some kind of graphics.
How can I save these graphics or drawings made by the app as a png file on the device?
Would it then be possible to set such a png file to become the icon for the app from within the app itself? (Provided the size is right of course.)
Thanks for any possible tip.
No, you can't change the app's icon at runtime (like the Calendar app that comes with the iPhone does)
How do I change the default icon of iPhone application programmatically?
For saving PNG images on your device, look into UIImagePNGRepresentation which is part of the UIImage Class.
As for changing the app icon, this would only be possible if you are jailbroken and have the right package dependencies that allow the icons to refresh in SpringBoard on the fly.
Outside of being Jailbroken, changing the app icon would require an app update which would include the new icon.
I wouldn't think it's possible for the actual icon for the app to change, because it's set on the phone when the app is installed.

How can I make a screenshot of iPhone desktop programmatically?

I need to make a screenshot of the iphone desktop and set it as background for my app, is it possible?
UIGetScreenImage should do what you want - check out this example.
But apparently, Apple (in its great wisdom) has banned its usage in apps for the App Store, and has removed it from iOS 7 arm64 and newer.
If you are looking to take a screenshot then you need to press the menu button and the lock button at the same time, as for setting it as the background of the app, just use the image which will automatically be placed in your camera roll.

Dynamically change iphone app icon and loading image

I would like to update the application icon and the splash (loading) screen of my app dynamically if possible, by storing the data in SQLite fetched from a webservice
I pretty sure the answer is going to be no but thought I'd get confirmation
Thanks
You can change the Default.png file by putting a symlink in your app bundle:
http://collison.ie/blog/2008/11/dynamic-defaultpng-files-on-the-iphone
The same technique might work for the Icon.png, but I doubt it, and if you could get it to work I imagine you'd have to HUP the SpringBoard (which you can't do on a non-jailbroken device).
It looks like Apple has removed the ability to set a badge for your app other than through push notifications (which in that case can only be a number according to the docs).
EDIT: This hole was closed in 3.0:
Dynamic (Default.png) splashscreen in 3.0 [iPhone SDK]