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.
精彩评论