In my project, i want to do something like this.
I just want to read the Path of the photo albums from the iPhone device,from where i want to get the photos. After getting the photos, i want to display the photos as views with swiping methodology, similar in the photo albums but in my project.
Is there is a way to achieve this?
Please advice me??
Unfortunately, you can not directly access the photo library from what I am aware of, but you can always use the image picker, which seems to have your required functionality.
https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html%23//apple_ref/doc/uid/TP40007070
Related
I need to get the photos from a Facebook page and need to display it in my view? Is it possible in IOS. if it is possible how to do it? I googled and found no clue.
Update:I need to display pictures from the album.
When using the Facebook Graph API and including a Picture with a post, the picture always appears as a small thumbnail. Is there a way to make the picture larger like it appears when you upload a photo and share it?
No, the size of that photo is controlled by facebook and the only thing you can do is playing around with the relative size of the photo you use so that it would look slightly bigger (you should use pictures with landscape layout as opposed to portrait to get a 'slightly' bigger photo.
The hack you can use to do that is what apps like Instagram and Path did: Each time someone uploads a photo, they upload the photo to an album named "Instagram/Path photos" and include the link to the original photo in the caption (in your case,the link to the original article).
However, in order to do that, you users must grant you additional permissions on Facebook and they may not like the idea of uploading photos to another album, so I (personally) wouldn't go that way.
I am implementing photo album application same as default photo album application in iphone.
can any body suggest me how to start?
I've written a simple and easy to use photo browser called MWPhotoBrowser. I decided to create it as Three20, while very good, was too heavy/bloated as all I needed was a photo viewer. Take a look:
MWPhotoBrowser can display one or more images by providing either UIImage objects, or URLs to files, web images or library assets. The photo browser handles the downloading and caching of photos from the web seamlessly. Photos can be zoomed and panned, and optional (customisable) captions can be displayed. The browser can also be used to allow the user to select one or more photos using either the grid or main image view.
Have a look at the Three20 project started by Facebooks Joe Hewitt, it contains several reusable controls like a photo viewer which mimics the iPhone's Photos app.
"TTPhotoViewController emulates Apple's Photos app with all of its flick n' pinch delight. You can supply your own "photo sources", which works similiarly to the data sources used by UITableView. Unlike Apple's Photos app, it isn't limited to photos stored locally. Your photos can be loaded from the network, and long lists of photos can be loaded incrementally."
http://github.com/facebook/three20/
Currently I am saving a UIImage to the photos album using UIImageWriteToSavedPhotosAlbum, which works fine.
Is there a way to then open the Photos app showing the just-saved photo? (I assume my app must close before opening Photos, which is fine.)
Simply opening the Photos app to the Saved Photos Album would be a not-quite-as-good alternative if the above isn't possible.
Thanks.
It is not possible to open the photos app. But, as a workaround, you can open the album where you saved the photo using UIImagePickerViewController. Then, the user can click on the image and see it. That way, they won't even have to exit your application.
No, it's not possible using the SDK. If this is something you think is needed, you should file an enhancement request.
I have to create same functionality as facebook has does like all the photos display at one view and from that user can choose photo and it goes to large photo. This photos are showing very fast. I have 5 photos from web but it take so much time. Does anyone know how they shows photo very fast.
I don't know the answer but I suggest you look at the three20 source code on github. Joe Hewitt (who wrote the Facebook app) published much of its code including the photo view. There is also a Google group that discusses three20.
I don't know about the iphone app in particular, but I do know that the main facebook website prefetches images in photo albums.
Facebook creates multiple sizes of each photo when it is uploaded. They also convert all the photos to png I'm pretty sure, likely reducing the file size of the original photo. I know creative has often complained about the "quality" of photos after uploaded to Facebook.
This allows them to deliver the appropriate sized image (both dimensions and file size) for quick display rather than delivering a full sized image and having the client resize it.