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.
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.
<a href="http://iphone.zcentric.com" target="_blank">Iphone Noob</a> iPhone Development Blog. Learn to develop for the iPhone SDK with me
<a href="http://iphonedevelopment.blogspot.com/" target="_blank"><font color="red">Check out my iPhone Dev Blog</font></a><br />
You can send me e-mail at my forum username at mac dot com.
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.
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.
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.
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).
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!
Replies
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.
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.
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.
-TX-
I would assume it means click but don't release the mouse button.
<a href="http://itunes.apple.com/us/app/bingo-world-wide/id291539020?mt=8" target="_blank">
Press and hold to save them.
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..
You can send me e-mail at my forum username at mac dot com.
Exactly. Dragging a photo into the simulator opens it in Safari. Doesn't have to be so difficult people
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.
Easy way to implement In App Purchase
10 Detailed Steps to Submit Apps To AppStore
Mah Games: 1. Arkaneum 2. Blast The Droids!
3. Idiot Bird
4. FreakOut
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:D
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
no, you need to copy it on the right simulator directory.
Pretty simple.