how can i get images from local folder using UIimagePicker controller - iphone

hi i am new to iphone. what i need is i have to display list of images as grid,for that i found UIimagePickerController. But there is tutorials for getting images from gallery and camera album for UIImagePickerController .But i need the images that are getting from a local folder containing images (means folder that is in project) and display them as grid using UIImagePickerController how can i done this. pls help me. thanks in advance.

You can't do this using UIimagePickerController. You have to implement your own grid-like table view.

UIImagePicker only gives you the images that are stored in Photos.
You wont be getting the images stored in local folder in UIImagePicker.
So you have 2 options
1. Save the images in Photos instead of your local folder
2. Create a grid like table view (as told by #beefon).
hAPPY cODING...

Related

Image save issue in custom album as well as default Camera Roll in iphone

I want to save image in Custom Album from my App. i know it possible in iOS 5 and up.
i am done with this functionality with the reference link
From the reference link image save successfully in Custom Album but issue is that image Save in Custom Album as well as Camera roll . How can i ignore to save in Two folder ?
any one have idea about that ? Thanks in Advance !!!

picking image without UIImagePicker

I m new in iphone.I need to know that how to get image from library without using UIImagePicker controller in iphone.
i m picking image from library through UIImagePicker and store image name in Database but i want to fetch that images back from library with name without UIImagePicker controller.
can anyone tell me how to do so?
The best way is uiimagePickercontroller. Or else You can save it in your database n retrieve it n display it on UIActionSheet as it will give look of imagepicker without using it.
First of all , using UIImagePicker controller is the best way to do this but imposes UI restrictions.
You can use ALAssetsLibrary to pick up images and show it in your own UI.
Third and the most dirty technique would be to pick the image from imagepickercontroller and save it in your documentsDir to pick from there in future(I would not recommend this technique but this is a way to do it without imagepickercontroller).
You can try NSFileManager to access files of the camera directory /User/Media/DCIM/. And then open the files and loading them into UIImageViews. Not sure on how Apple would react on this as you're accessing files outside your apps sandbox.

Creating an image for UITabBarController tab - iPhone Dev

Im trying to create a PNG file (thats what I assume the file extension should be) to create an icon for the tab controller. Here is a picture of what I mean..
http://www.ispazio.net/wp-content/uploads/2010/04/IMG_0036.png
I tried creating it in Photoshop, saving it as PNG, clearing the background, trying interlaced versions but all I get are big blobs and blocks when I try to import it in the app.
Any Ideas?
Thanks
Here are some helpful tutorials:
http://osmorphis.blogspot.com/2009/02/tab-bar-icons-part-1_4115.html
http://osmorphis.blogspot.com/2009/03/tab-bar-icons-part-2.html
http://area72.ro/iphone/iphone-tab-bar-icons.html
you have to use this type of image
in your tab bar

iPhone: Can I get an image picker to have the documents folder as its source

It looks like I cant create an album for my picture producing app in the photo library... so what I was going to do is save the images to the documents folder for my app, which I think should be easy enough. The issue though is that the image picker seems to only allow you to pick saved images or photo library as the source, and I would like users to be able to view all images created by my app. Is there a way to make the picker work or will I have to roll my own?
the image picker that apple provides only gives you access to pictures saved in the camera roll. It also gives you the functionality to take a new picture if you are on an iphone. If you save pictures in your app's local storage directory, then you need to build your own mechanism for viewing these photos. You may want to take a look at Joe Hewitt's 320 project - it has a lot of good controls that you may find useful.

How to make UI Image Picker Controller read a custom source type in iPhone

I have to create a photo gallery app in iPhone. It should function same as the Photos app which is shipped with iPhone. But it should show the images which I package with the app.
UIImagePickerController reads only the following source types.
UIImagePickerControllerSourceTypePhotoLibrary,
UIImagePickerControllerSourceTypeCamera,
UIImagePickerControllerSourceTypeSavedPhotosAlbum
I was thinking of adding the images bundle to the resources group in Xcode and make UIImagePickerController to read them and display.
Looking at the class references I found UIImagePickerController reads only from the resources mentioned above. Which means it can only pick the images from camera roll OR saved photo gallery OR allow user to take a pic and use it.
Does anybody know how to make UIImagePickerController read from custom source type or images?
OR
How to create a photo gallery app in iPhone :-)
Thanks,
AJ
I don't believe it is possible to make the UIImagePicker pick images from your own source. You will have to write the picker yourself (which, performance aside, doesn't seem to hard... Just a couple of UIImageViews in a UIScrollView).
Just today I started a open source UIImagePickerController clone, it is not perfect but it works quite ok. Feel free to fork http://github.com/jeena/JPImagePickerController