UIScrollView as image viewer - iphone

I have to use UIScrollView as image viewer like Photo app. The UIScrollView is supposed to show photos with swiping, zooming and rotating with interface rotation.i have to load minimum 20 images.is it possible? which is the best way? plz post some sample codes.

I've written a simple and easy to use photo browser called MWPhotoBrowser which you should be able to look at and dissect.
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, panned, and navigated with previous/next buttons.
View MWPhotoBrowser on GitHub
Hope this helps!

Refer to the sample application page control here https://developer.apple.com/iphone/library/samplecode/PageControl/ , it should help you get started, they have a scroll view that you can use to scroll through a bunch of pages, you can modify this to do pictures. It doesnt do zooming o rotationg but its a good place to start

Related

Continuous image transition like in default iPhone album

I am taking pictures from my custom UIImagePicker camera and saving the images inside the app Document Directory.
Now, when I display the images when a user Swipes over my image he should see the next/prev image. As of now I have keep the transition discrete(the image doesn't move with the finger; it changes immediately). But I would love the transition be smooth like the one in default iPhone album (smooth and along with the finger).
Can you tell how to achieve this ?
Thnx in advance
If u want to scroll images only than u can used Paging technic:
try this link:
http://eureka.ykyuen.info/2010/05/22/iphone-uiscrollview-with-paging-example/

How to show images in grids like iphone photo gallery does on iOS

I'm working on an iphone app and want to have a page showing multiple images in multiple grids (each grid has a image that will response when a user tabs on it), like the default iphone photo gallery app would show image thumbnails.
The first thing came to my mind was tableview with customize cells. Each cell would display some buttons and each button represents an image and set the cell as non-selectable. So the user can tab the buttons (the images) but not the cell itself. But is this the best way? Is this how the built-in photo app does it?
Thanks a lot
There are several open source grid views.
AQGridView
Also previously answered here:
Previous Answer on SO
You might want to wait for iOS 6 (hint, hint).
Login to developer.apple.com and look at the WWDC 2012 Videos (i.e. What's New In Cocoa Touch).

I want add pdf page to UIPageViewController view

I am new in iPhone application development, I am developing one iPad application development. In this application i am using UIPageViewController. Now i want pdf file page to display UIPageViewControlller view. how to read pdf page and how to add UIPageViewController please give some me example.
Thanks in advance
You can draw a PDF page to a CALayer or to a UIImage. Apple even have sample code to show how draw a large PDF in a , Zoomable UIScrollview and for page view controller i havent try out this but may be this link will help you out
Apple has a sample code project called ZoomingPDFReader. It's a simple app that displays a page of a PDF. Put this into your app. Keep track of the page number, and then display the corresponding PDF page.
You can download the source code Here

iOS development, show UIScrollView area on top of current view

Has anyone used the Instagram app lately?
It has a very neat feature, where, while you are using camera, you can touch the 'eye' button, which pops up a small scrollable UI area that contains different filters that can be applied to the camera video.
Can anyone help me on what kind of UI element I should use to get such popup?
Thanks.
The one on the Instagram app looks like a simple UIScrollView with custom subviews added in. What these subviews contain and how they look is completely up to you and your design.

image scrolling on touches in iphone

iam developing an app in which, images are to be scrolled on touchesmove i.e, swipping left /right.
I also have to display previous and next images beside present image in protrait mode.
I have seen the covertFlow sample, which is very close to my app, but i want it in horizontal mode. Please suggest me how can i acheive it , links related to it can also be helpful for me..
thanks in advance.
Well how about taking the open source CoverFlow implementation and modify it to work in portrait mode?
You can get sample code in this tapku Library
I solved my query and it is working without using any libraries.
I used the concept of lazyloading to download images, and i placed the images in scrollview which helps to scroll the images.
The following link used to load images asynchronously.
http://www.markj.net/iphone-asynchronous-table-image/