Is it possible to know (access) which image is set as the phone background? I want to put the same image in a UIImageView in my app.
Thanks in advance!
No, it is not possible to programmatically get the home screen or lock screen wallpaper image. You should ask the user to select the background image from their photo library.
Related
I'm making an app which is a counter.
I would like to show the time when the user enters the home screen as it is shown here:
https://dl.dropbox.com/u/8455739/SCR/IMG_2696.PNG
https://dl.dropbox.com/u/8455739/SCR/IMG_2697.PNG
Is it possible to use it? If yes, where to find it and how to use it?
Thanks in advance
You cannot change the content of the home screen.
What you can do that you display such a status bar inside your application.
The exampels you showed, have such a bar inside an application.
To create such a bar you create a custom View (see Apple ViewProgramming Guide)
where you implement drawRect().
In drawRect you draw a red rectangle with CGFillRect() or similar methods of CoreGraphics / Quartz2D.
You should use VOIP in Background or recording audio.
Check this LINK voip and LINK audio recording
I am taking pictures from my custom UIImagePicker camera and saving the images inside the app Document Directory.
Now, when I display the images when a user Swipes over my image he should see the next/prev image. As of now I have keep the transition discrete(the image doesn't move with the finger; it changes immediately). But I would love the transition be smooth like the one in default iPhone album (smooth and along with the finger).
Can you tell how to achieve this ?
Thnx in advance
If u want to scroll images only than u can used Paging technic:
try this link:
http://eureka.ykyuen.info/2010/05/22/iphone-uiscrollview-with-paging-example/
Into my app, I need to display the lock screen background image chosen by the user.
How can I get that image to display it without using private API ?
There is no public API to get the lock screen or home screen images.
im working in iphone's camera app, using UIImagePicker to launch the camera.
Everything goes well, just a need to use the default controls showed in the camera app in iphone(little thumbnail from the last pic in camera roll and take photo buttons) and its animation(take and send the picture to the left bottom thumbnail), not default in UIImagePicker (cancel and take photo buttons).
How i can do that?
thankz :D
You can't do that. What you should do is present a UIActionSheet and ask if the user wants to get a photo from the Camera or their Photo Albums.
You may try to use the cameraOverlayView property or create your own custom controls duplicating the default controls (hiding the default controls with showsCameraControls = NO).
I was wondering how I could access the iPhone's Home Screen Image so that I can use it as the background for my application. In short, access the NSImage that represents the home screen's wallpaper.
Thanks.
Firstly, on an iDevice, it is a UIImage. Secondly, in answer to your question, no - not using public APIs at least.