2

The default simulator comes with 5 images. Is there a way to add for example additional 100 dummy images to the simulator's photo album?

This is mainly to test the functionality of working with a huge photo library with lots of images.

Any help or guidance will be greatly helpful. Thank you in advance.

as diu
  • 1,010
  • 15
  • 31
  • Possible duplicate of [How do I add images to the iOS Simulator](https://stackoverflow.com/questions/13441973/how-do-i-add-images-to-the-ios-simulator) – QED Jul 11 '17 at 00:58

2 Answers2

1

Use UIKit's UIImageWriteToSavedPhotosAlbum. Or use the linked answer.

QED
  • 9,803
  • 7
  • 50
  • 87
0

Drag and drop:

  1. Open the Simulator
  2. Navigate to the Photos.app
  3. Drag and drop images, videos, GIFs, etc from your computer into the simulator
  4. They'll appear in your Photos.app gallery now and you can import them into your app
iwasrobbed
  • 46,496
  • 21
  • 150
  • 195