 |
 |
|
 |
08-06-2008, 08:15 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jul 2008
Location: Zurich, Switzerland
Age: 35
Posts: 15
|
No Photos in iPhone Simulator. How to add photos?
Hi all,
it seems, that the sample photos included in the iPhone Simulator are deleted after resetting the simulator as well.
Is it possible to add images to the simulator again in order to test an application using a UIImagePicker?
Thanks,
Michael.
|
|
|
08-06-2008, 08:28 AM
|
#2 (permalink)
|
|
New Member
Join Date: Jul 2008
Location: United Kingdom
Posts: 6
|
I had the same problem and its because I clicked on the "Clear iPhone Cache and Content" but it seems to get rid of everything,
all you need to do is just re install the whole of xcode again, you don't need to uninstall first just install over previous and the images will be back on the iPhone simulator.
the good thing as well is that you dont loose any of your xcode settings.
|
|
|
08-08-2008, 12:23 PM
|
#3 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 75
|
I got this from a IRC chat room. All the directorys and file names are case sensitive. So when I use. JPG I mean use JPG not jpg.
Place your images in
~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE
Create the 100APPLE if it is not there
Rename your files like
IMG_0000.JPG
IMG_0001.JPG
IMG_0002.JPG
That will put them in the photo album. You do not see thumbnails though. I haven't figured that out.. I was told make copies and name them THM file types but i didn't get it to work.. but its better then re-installing.
|
|
|
08-08-2008, 12:33 PM
|
#4 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 361
|
you could just access the net via the web browser in the simulator.
find an image.
Hold your click on it.
it will popup asking if you want to save an image to your library.
Do so.
Tada.
|
|
|
08-28-2008, 10:55 AM
|
#5 (permalink)
|
|
New Member
Join Date: May 2008
Posts: 17
|
??
Sorry but what does "hold the click" means in the simulator ?
-TX-
|
|
|
08-28-2008, 10:59 AM
|
#6 (permalink)
|
|
1026 Development
Join Date: Jul 2008
Age: 21
Posts: 791
|
Quote:
Originally Posted by cacaodev
Sorry but what does "hold the click" means in the simulator ?
-TX-
|
I would assume it means click but don't release the mouse button.
|
|
|
11-07-2008, 11:35 AM
|
#7 (permalink)
|
|
New Member
Join Date: Nov 2008
Posts: 3
|
The Safari method also gets you thumbnails.
|
|
|
11-07-2008, 01:42 PM
|
#8 (permalink)
|
|
New Member
Join Date: Apr 2008
Posts: 802
|
Just drag your own photos to safari on the iphone.
Press and hold to save them.
|
|
|
11-21-2008, 12:24 AM
|
#9 (permalink)
|
|
hemali
Join Date: Nov 2008
Location: Ahmedabad
Age: 22
Posts: 12
|
make new application on iphone in sdk.
and make UIImage objects of your images which you want to see in your iphone
put this in applicationDidFinishLonching function
UIImage * sShot = [UIImage imageWithName:@"imageName.jpg"];
UIImageWriteToSavedPhotosAlbum(sShot, nil, nil, nil);
This two line will save your imageName.jpg image file in your iphone similator.
do this for your all images..
|
|
|
11-21-2008, 10:19 AM
|
#10 (permalink)
|
|
New Member
Join Date: Apr 2008
Posts: 420
|
|
|
|
11-21-2008, 10:39 AM
|
#11 (permalink)
|
|
New Member
Join Date: Nov 2008
Posts: 88
|
Quote:
Originally Posted by scottiphone
Just drag your own photos to safari on the iphone.
Press and hold to save them.
|
Exactly. Dragging a photo into the simulator opens it in Safari. Doesn't have to be so difficult people
|
|
|
08-05-2009, 05:13 PM
|
#12 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 8
|
How would I reinstall xcode?
|
|
|
02-12-2010, 04:29 PM
|
#13 (permalink)
|
|
Registered Member
Join Date: Dec 2008
Location: Oceanside, CA
Posts: 447
|
thanks this worked, u can also drag and drop images into simulator, and then save them
|
|
|
02-12-2010, 08:10 PM
|
#14 (permalink)
|
|
One Man Show
Join Date: Oct 2009
Location: MY
Age: 32
Posts: 1,189
|
Yep, just drag any image from any where in your mac, into the iphone sim screen. that'll open up the safari inside the simulator. then you click and hold on the image, a actionsheet will pop up and select Save Image. you're done.
for me, i always backup the images, which is under ~/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE to another folder. So when I do a Reset Settings for iphone sim, i then just copy it back to that place.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 364 |
| 29 members and 335 guests |
| ashish_pandita, bensj, bono_aem, BrianSlick, CHV, dkern, Erle, firearasi, giampo, graph, hawksz, henmue, iGeorG, iTrackiGiveaway, Kalimba, KennyChong, kiancheong, Kilby, marklusted, masc2279, mikeyb, mr.pagu, pengcognito, pierresinne, quky, raviram, rawjam, svveet, yeohchan |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,293
Threads: 39,083
Posts: 171,369
Top Poster: smasher (2,575)
|
| Welcome to our newest member, michael@2label |
|