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

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

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, 09:15 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Location: Zurich, Switzerland
Age: 36
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, 09: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, 01: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, 01: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, 11: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, 11:59 AM   #6 (permalink)
1026 Development
 
Join Date: Jul 2008
Age: 23
Posts: 1,088
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, 12:35 PM   #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, 02: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, 01:24 AM   #9 (permalink)
hemali
 
Join Date: Nov 2008
Location: Ahmedabad
Age: 24
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, 11: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, 11: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, 06: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, 05:29 PM   #13 (permalink)
Registered Member
 
Join Date: Dec 2008
Location: Oceanside, CA
Posts: 570
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, 09:10 PM   #14 (permalink)
indie dev
 
rocotilos's Avatar
 
Join Date: Oct 2009
Posts: 2,731
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.
rocotilos is offline   Reply With Quote
Old 09-02-2010, 11: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-03-2010, 12:59 AM   #16 (permalink)
Elegance is Infinite
iPhone Dev SDK Supporter
 
TapTouchClick's Avatar
 
Join Date: Jan 2010
Location: Bay Area, CA
Posts: 677
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.
__________________
Our website
TapTouchClick is offline   Reply With Quote
Old 10-02-2010, 08:52 PM   #17 (permalink)
John Avatar™
 
JohnAvatar™'s Avatar
 
Join Date: Oct 2010
Location: Pacific Palisades, CA 90402
Posts: 4
Default

Someone said it! All you have to do is find your image, or images (I used JPEG's), drag them into the simulator window. Safari will open with your image in the browser window. Left click (if on a MacBook Pro, or use your mouse) on the image, a popup window should open offering for you to save your image. Click on save and your image(s) will be in your Photo app.

That's it! Very simple.

Thanks to all for the clues.... I was wondering how to do this and I was looking for the complicated solution, like dragging images to a Simulator folder somewhere, but you guys pointed me to just dragging images to the simulator window!

Because of that, I've now registered to this site as one of my favorite iPad/iPhone/iPod Touch developer resources.

Thank you,
John Avatar™
JohnAvatar™ is offline   Reply With Quote
Old 10-02-2010, 08:58 PM   #18 (permalink)
John Avatar™
 
JohnAvatar™'s Avatar
 
Join Date: Oct 2010
Location: Pacific Palisades, CA 90402
Posts: 4
Default

Anyone in the Pacific Palisades, Malibu, Santa Monica, CA (90402) area, want to co-venture/co-develop some really cool, revolutionary apps and new hardware with me? I've just formed this new company and plan to grow it fast, with a massive IPO in the near future....

My first two, silly GodApp's are at the Apple App store, and exercise in the process, from beginning to finish, on developing and getting Apple App's released. I'm working on the real ones now (including hardware).

Thanks!
John Avatar™
Email: JohnAvatar@JohnAvatar.com
JohnAvatar™ is offline   Reply With Quote
Old 12-17-2010, 08:26 PM   #19 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 1
Default Is there a way to access the Photo Albums Imported from iTunes?

Is there a way with the SDK to acquire the images from the images in Photo Albums uploaded from iTunes?



Quote:
Originally Posted by mkroll View Post
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.
xpous is offline   Reply With Quote
Old 12-18-2010, 05:10 AM   #20 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
Default

Quote:
Originally Posted by xpous View Post
Is there a way with the SDK to acquire the images from the images in Photo Albums uploaded from iTunes?
no, you need to copy it on the right simulator directory.
__________________
dany_dev is offline   Reply With Quote
Old 12-19-2010, 04:36 PM   #21 (permalink)
John Avatar™
 
JohnAvatar™'s Avatar
 
Join Date: Oct 2010
Location: Pacific Palisades, CA 90402
Posts: 4
Default Just testing.... but, yeah, drag image to iOS simulator window...

I testing this out, but yeah, as someone said, open up the Apple iOS simulator and drag an image to the simulator window (iPad, or iPhone/Touch), then click on that image, hold it and you will be asked to save it. That's it!

Pretty simple.
__________________
--
J O H N A V A T A R ™
Pacific Palisades, CA 90402

"Doing the Impossible!"
JohnAvatar™ 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
» Online Users: 436
14 members and 422 guests
Alexander_john, beyondstop, dapis, Edsilmars, HowEver, Hyde, john234ny, linkmx, MozyMac, pill5b3rry, pochuang, pufftissue, rianneadams, samtakoy
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 157,848
Threads: 88,913
Posts: 379,292
Top Poster: BrianSlick (7,072)
Welcome to our newest member, rianneadams
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:54 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0