Iphone 4 Simulator, Set Background Image? - iphone

I noticed on Xcode 3.2.3 that of the three simulators available both the iPhone(water drops) and iPad(night sky) show background images. Is there a way to add a few photos to Photos so that I can set one as a backdrop.
NB: I tried dragging an image to Safari in the simulator and then clicking/holding and saving but the image does not show up in Photos.
Gary.

Tapping and holding on an image viewed in Safari allows you to add the selected image to the Photo application. When the message pop-up appears choose "Save Image". Quit Safari and go to the Photo application. The image should be in the camera roll.
I have tried this technique before and it has always worked for me.

Try putting some images in the following directory:
~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE
Create the 100APPLE directory if it doesn't already exist. Then add some images in the format of:
IMG_0000.JPG
IMG_0001.JPG
IMG_0002.JPG
IMG_0003.JPG
I think this might be case sensitive as well.

Related

adding image to library in iphone simulator

I've done some research on this issue for the past hour. It should be an easy issue, but I still can't get it to work. I've added an image called IMG_0000.JPG in ~/Library/Application Support/iPhone Simulator/4.1/Media/DCIM/100APPLE and ~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE. People say the easy way out is to drag an image from safari to the library. I did that and it opens the image in safari, but when I try again the image is not there. What should I do?
When they are talking about adding the image from Safari, it is actually adding it in Safari from the simulator.
Open Safari on your iPhone simulator, go open the image you want and make a long press on the image. An option to save the image should appear.

How can I add some photos to the simulator photo library?

How can I add some photos to the simulator photo library?
Open safari in simulator .. search for any type of images (.jpg images, .png etc.), later finding the image give a long press on that image for few seconds .. an action window will open with these buttons inside it Save Image, Copy, Cancel. Press save, then the images will be saved into the Photos Library.
Use simulators web browser to find some pictures and save them.

ios4 photo library path on simulator

I have an app need to load photos from simulator photo library.
After I upgrade ios4, the photo library is empty.
So I have to add the photos manually.
But I can not get the path relates to the photo library on simulator.
Is there anyone know this?
Welcome any comment
Thanks
interdev
you can open a webpage and hold down your mouse to save it
the path in which all the photos saved is:
/Users/USERNAME/Library/Application
Support/iPhone Simulator/4.1/Media
4.1 or which sdk you are using
//EDIT:
I tested it with the first option and it saves all the pictures in DCIM/100APPLE/ but it also create the folder PhotoData/100APPLE/ where for each picture a .BTH and .THM is saved.
So the easiest way is to drag and drop a image on the simulator. The Simulator will open a webpage to your local file ("file://…") and then you can save it but holding your mouse key for 3 seconds or so.
Then click "save image" and it should appear in your Photo Library.
I find this free app very useful to batch import pictures into the simulator:
http://aptogo.co.uk/2010/09/importing-photos/
If it doesn't work straight away, follow the Reset Content instructions (warning - this will completely reset all apps and data on the simulator), and as long as you have a photo in the Photos app before you do it, it does work well.

How to add images to iphone simulator v4

I've always been able to get images into iphone simulator 3 by the usual methods described on this site (i.e. dragging image into iphone simulator).
However, having upgarded to the new xcode 3.2.3, although I can still save images to the simulator, I can't actually see them there when I go to the library on the simulator.
Thankfully - it works when I build for the iPad simulator.
Has anyone else go this problem or is my install of the new xcode screwy?
I've noticed that you can add them if you change the device in the Hardware menu. Switch to iPhone and do the usual. Then switch back to iPhone4 and you'll be able to see the images in the photo library.
alt text http://img.skitch.com/20100705-8kra9hetayjqhyu3i5w4brayr4.png
You should also file a radar with Apple. ;-)
I was had the same problem after v4 upgrade but it seems to work if I drag the images into an album in the actual 'photos' app.
You can save images in the simulator by going to Safari on the iPhone,iPad.
Navigate to some URL eg, hot pictures of Megan Fox on google images. Click and hold on your favourite image of here, hopefully in a very hot pose. Then select save from the menu that appears.
This normally does it for me.
[UPDATED]
Sorry this does not work on 3.2.2 but has worked in the past.
Seems that you need to run the Photos app on the simulator after dragging in images in order for it to make the images available from your app.
First you simply run simulator then tap on back button after this drag image from your macbook u found small image on simulator screen hold courser on image
after a while bring a pop-up screenView on iPhone simulator screen to ask that you want to save this image or cancel
you just save and go back
open photo gallery you must be see one image in photo gallery

Sync image from iTunes to the iPhone simulator

I want to know how to sync images from iTunes to the iPhone simulator.
This worked for me with iOS4: at the simulator, click home, then click the Photos icon. Drag the image from your Mac onto the simulator screen. Then follow the instructions above: hold down the mouse click on the image until the popover comes up. Choose Save image. Verify by clicking back to Photos (on the simulator) and inspecting (the new) album "Saved Photos."
I spent a while looking into this, and my conclusion for now is that although the Photos app says:
"You can sync photos and videos onto
your iPad Simulator using iTunes."
it's probably not actually simulator-specific instructions, but a generic message of the form
"You can sync photos and videos onto
your {DEVICE_NAME} using iTunes."
Where {DEVICE_NAME} is determined by calling [[UIDevice currentDevice] model].
Drag the photo into the simulator. After the iPad Simulator opens the dragged-in image in Safari, press-and-hold the image until the popover comes up. From the popover, choose Save Image. This saves the image to your iPad Simulator photo library.
After the iPad Simulator opens the dragged-in image in Safari, press-and-hold the image until the popover comes up. From the popover, choose Save Image. This saves the image to your iPad Simulator photo library.
Open Photo Album in the iphone
simulator
Drag the image into it IT shall open the image in the browser
keep right click pressed on the image
an option with the "save image" shall appear
click on it And Viola.. you have it inside the Photo Album
If you need to import more than just one or two photos then take a look at this article. It describes an easy way to perform a bulk import of photos.
I'VE GOT IT! You must 'drag' the picture to the ipad simulator.
Unfortunately for people who regularly upgrade, the iPhone Simulator for iOS 4 does not have a Photo Album as far as I can see. None of the suggestions above works with it.