Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Infinote Pinboard
for Todos and Notes
(free)

picplz
(free)

poG
($2.99)

VintageChart+
by Wine Spectator
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2008, 08:15 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Location: Zurich, Switzerland
Age: 35
Posts: 15
Default 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.
mkroll is offline   Reply With Quote
Old 08-06-2008, 08:28 AM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Location: United Kingdom
Posts: 6
Default

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.
safa_uk is offline   Reply With Quote
Old 08-08-2008, 12:23 PM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 75
Default

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.
hijinks is offline   Reply With Quote
Old 08-08-2008, 12:33 PM   #4 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 361
Default

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.
DevTeamOfOne is offline   Reply With Quote
Old 08-28-2008, 10:55 AM   #5 (permalink)
New Member
 
Join Date: May 2008
Posts: 17
Default ??

Sorry but what does "hold the click" means in the simulator ?

-TX-
cacaodev is offline   Reply With Quote
Old 08-28-2008, 10:59 AM   #6 (permalink)
1026 Development
 
Join Date: Jul 2008
Age: 21
Posts: 918
Send a message via AIM to Jeremy1026
Default

Quote:
Originally Posted by cacaodev View Post
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.
Jeremy1026 is offline   Reply With Quote
Old 11-07-2008, 11:35 AM   #7 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 3
Default

The Safari method also gets you thumbnails.
Kent is offline   Reply With Quote
Old 11-07-2008, 01:42 PM   #8 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
Default

Just drag your own photos to safari on the iphone.
Press and hold to save them.
scottiphone is offline   Reply With Quote
Old 11-21-2008, 12:24 AM   #9 (permalink)
hemali
 
Join Date: Nov 2008
Location: Ahmedabad
Age: 23
Posts: 12
Default

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..
hemalimojidra is offline   Reply With Quote
Old 11-21-2008, 10:19 AM   #10 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 420
Send a message via AIM to jeff_lamarche Send a message via Yahoo to jeff_lamarche
Default

OfCodeAndMen(); » Blog Archive » Adding pictures to the Simulator
__________________
Check out my iPhone Dev Blog
You can send me e-mail at my forum username at mac dot com.
jeff_lamarche is offline   Reply With Quote
Old 11-21-2008, 10:39 AM   #11 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 88
Default

Quote:
Originally Posted by scottiphone View Post
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
City41 is offline   Reply With Quote
Old 08-05-2009, 05:13 PM   #12 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 8
Default

How would I reinstall xcode?
cameron50 is offline   Reply With Quote
Old 02-12-2010, 04:29 PM   #13 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Oceanside, CA
Posts: 567
Default

thanks this worked, u can also drag and drop images into simulator, and then save them
aryaxt is offline   Reply With Quote
Old 02-12-2010, 08:10 PM   #14 (permalink)
iPod Touch 8GB
 
rocotilos's Avatar
 
Join Date: Oct 2009
Location: MY
Age: 32
Posts: 1,670
Default

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.
__________________

New & Noteworthy Apr '10
(click icon.. it's a FREE App!)

"...I decided that Apple can't afford to change its core values and simply let it slide. We have the same core values as when we started, and we come into work wanting to do the same thing today that we wanted to do five years ago."
rocotilos is offline   Reply With Quote
Old 09-02-2010, 10:10 AM   #15 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 1
Default

Dragging photos into the simulator is OK if you have just one or two. If you need to import more then check out this article. It describes how to do a bulk import of photos with correct generation of thumbnails and updating of the photos database. It works on all versions of the simulator including 4.x.
RobinSummerhill is offline   Reply With Quote
Old 09-02-2010, 11:59 PM   #16 (permalink)
Elegance is Infinite
 
TapTouchClick's Avatar
 
Join Date: Jan 2010
Location: Bay Area, CA
Posts: 630
Send a message via AIM to TapTouchClick Send a message via Skype™ to TapTouchClick
Default

I made a quick app that scraped google images and saved the first page all to photos album. Let me see if I can find the project.
__________________
Im hoping we can help eachother out.

Check me out at My Website
Or on YouTube.

you can also follow me on Twitter or read my Blog.



Cheers
TapTouchClick is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 52,414
Threads: 53,155
Posts: 226,639
Top Poster: BrianSlick (3,598)
Welcome to our newest member, topDeals2000
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:33 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0