I need to build a feature similar to iphone photo viewing app.
Where user can scroll through all images, zoom through current image and double tap to zoom out. I can do without double tap too.
I have used UIScrollView and loaded some images with paging enabled. But when I zoom in everything messes up.
I tried to do in a different way where I put all images in a single UIView containing images and put that UIView inside UIScrollView. But this way when I zoom all the remaining images also zoom in.
I have been trying to do all such things since 3 weeks.
Can anybody pleaase post code as to how to emulate this native iphone app.
I have spent loads of time searching on this forum n google
Quote:
Originally Posted by RickMaddy
There a several existing threads here on this subject. Do a search. But you are not likely to find a good answer. It's a very difficult task.
Yes Maddy, I do agree with you. I have spent loads of time searching on this forum n google, but in vain. I hope somebody answers to this question.
So did you find any success??
I need to build a feature similar to iphone photo viewing app.
Where user can scroll through all images, zoom through current image and double tap to zoom out. I can do without double tap too.
I have used UIScrollView and loaded some images with paging enabled. But when I zoom in everything messes up.
I tried to do in a different way where I put all images in a single UIView containing images and put that UIView inside UIScrollView. But this way when I zoom all the remaining images also zoom in.
I have been trying to do all such things since 3 weeks.
Can anybody pleaase post code as to how to emulate this native iphone app.
Thanks,
Maneesh
Last edited by sarahconnor; 07-12-2009 at 04:44 PM.
You can Pinch, move, double tap zoom and it is very light. The core uses a UIScrollView and severals UIControllerViews, along with custom scale transform code, plus a Custom UIPageControl. Feel free to use this in your app project as long as you add a back link to me, thanks!
Thanks for writing this library, it's very useful. I got it up and running my image slideshow with almost no modifications. I did have to fix a couple of lines of code that were hardcoded to the dimensions of the iPhone screen. With a couple of changes it seems to be running fine on both the iPhone and the iPad.
For anyone else that wants to run this code on the iPad, the lines to change are in DiapController and are easy to spot. I changed the 320s and 480s to self.view.bounds.size.(width / height). There's also a 300 or so which I changed to width - 20. Something like that. It's pretty simple.
Thanks for writing this library, it's very useful. I got it up and running my image slideshow with almost no modifications. I did have to fix a couple of lines of code that were hardcoded to the dimensions of the iPhone screen. With a couple of changes it seems to be running fine on both the iPhone and the iPad.
For anyone else that wants to run this code on the iPad, the lines to change are in DiapController and are easy to spot. I changed the 320s and 480s to self.view.bounds.size.(width / height). There's also a 300 or so which I changed to width - 20. Something like that. It's pretty simple.
I've written a simple and easy to use photo browser called MWPhotoBrowser.
It is an implementation of a photo viewer that I wrote allowing the user to view one or more images in a similar way to the native Photos app. It can display one or more images by providing either UIImage objects, file paths to images on the device, or URLs images online. Photos can also be zoomed and panned.
Bisbo this code is really good, it's exactly what i have been trying to achieve!
The layout is really clean making it really easy to follow, although most of it way above my head!
How could i convert the 'Menu' into xib so i could customize in Interface Builder instead of coding it?
Also, i inserted custom images that covered the whole cell, how do i go about having the image resize from portrait to landscape?
I've written a simple and easy to use photo browser called MWPhotoBrowser.
It is an implementation of a photo viewer that I wrote allowing the user to view one or more images in a similar way to the native Photos app. It can display one or more images by providing either UIImage objects, file paths to images on the device, or URLs images online. Photos can also be zoomed and panned.
thanks very much mwaterfall, your library helped me a lot , by i have a question and hope find answer from you, please tell me how i can display two pages side by side in landscape mode when the device is ipad