4

Is there anyway of placing images on the iPad simulator?

TheLearner
  • 19,387
  • 35
  • 95
  • 163

3 Answers3

7

You can save images from Safari.

I don't think there is a different (easier) way.

Pieter Jongsma
  • 3,365
  • 3
  • 27
  • 30
  • Maybe you could type in a "file://localhost/..." URL into Safari on the simulator to load a photo from somewhere on your Mac? – progrmr Jun 23 '10 at 04:03
  • Not localhost, but I suppose file://Users/username/... should work – Pieter Jongsma Jun 23 '10 at 09:16
  • 4
    Just drag-and-drop from Mac to Simulator screen will work. No need of URL writing. Click-and-hold the opened image in safari and save to camera roll. – ravinsp Aug 13 '11 at 15:25
3

if you drag and drop from the OS onto the simulator, it will load the image into safari, where you can then save to your camera roll

Tim
  • 31
  • 1
2

I've done this by writing a little throwaway app that contains the images I want, then use the UIImageWriteToSavedPhotosAlbum API call to save them from my bundle.

David Coufal
  • 6,021
  • 5
  • 28
  • 30