Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding images or videos to iPhone Simulator

I am trying to use UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says, "No photos". Where does the simulator get the images from? Where should I copy the images so that they are displayed in the simulator?

like image 591
Vijayeta Avatar asked Jan 22 '09 12:01

Vijayeta


People also ask

How do you put videos on iPhone simulator?

It's very simple you just drag any . MOV file to your simulator. Now it will be opened in Safari browser. At top left corner there is a 'Done' button.


1 Answers

Explain step by step of Airsource Ltd's answer for adding image to simulator:

  1. Drag it to simulator, then Safari opens (or browse to the Image in the internet using Safari)
  2. Hold your click on the image
  3. When the pop-up appears, choose Save Image and enjoy ;)

Update: for iOS Simulator 4.2, do these steps twice to get it work. Thanks kevboh!

Update: This also works for iOS Simulator 6.1

like image 90
KONG Avatar answered Sep 20 '22 09:09

KONG