Is clickable is possible inside scrollview? - iphone

In my application i want to load more then one view inside scrollview and also give more no.of imageview inside each and every view...if give so,is it clickable is possible...
give me a solution to do this...
Thank You,
Varshu

Try PhotoScroller sample application. This application demonstrates the use of embedded UIScrollViews and CATiledLayer to create a rich user experience for displaying and paginating photos that can be individually panned and zoomed. CATiledLayer is used to increase the performance of paging, panning, and zooming with high-resolution images or large sets of photos.

Related

Subviews on UIImagePicker?

I was wondering: in Apple's "Photos" app, when the user wishes to share more than one photo, he or she can tap on the individual thumbnails, and a check in a red circle will appear on top of each one, indicating that they've been selected for sharing. Is there any way to mimic this behavior in our apps? By somehow inserting subviews on thumbnails, perhaps...? Thanks in advance.
You can't affect the thumbnail views on a UIImagePicker, so you'll have to implement this yourself. It should be pretty straightforward:
UIScrollView will be the container
a UIView descendant for each tile, containing
UIImageView subview to display the thumbnail
UIButton for the clickable checkmark
Make sure you create thumbnails of your images and cache them, and don't shy away from UIImageView - it is heavily optimized.
There is a great sample app in the WWDC sample code re: UIScrollView that should give you a good starting point.

Scrolling horizontally between multiple images using UIScrollView

If we start with the photos app for example. The images can be viewed with a swipe and the images scroll into view as the user swipes.
How is this kind of UIScrollView setup and how are the Images (e.g. from an array) displayed within this UISCrollView?
Are the images added to the scrollview at once or how is this paging look achieved?
Thanks
This can be achieved using a main UIScrollView with pagingEnabled set to YES and containing nested UIScrollViews. Then you can put an UIImageView in each one of these nested scroll views, so you can also achieve zooming by returning it to - (UIView *)viewForZoomingInScrollView:
Also, you can take a look at these samples from Apple:
http://developer.apple.com/library/ios/#samplecode/Scrolling/Introduction/Intro.html
http://developer.apple.com/library/ios/#samplecode/ScrollViewSuite/Introduction/Intro.html

iPhone parallax scrolling with UITableView

I am creating a navigation based application, and throughout my application, I want to maintain an image as background. Also, I want parallax scrolling for the background, i.e., when I scroll table view cells vertically, background image should scroll at a relatively slower speed. Also, my application has some images and text in detail views, which should scroll at higher speed and background at a lower speed. This I want is to create a 3D effect. I have gone through cocos2D framework, but its all apps shows a single view and two images, one for foreground and one for background. So I need some starting point, whether I am in right direction or not. Also, is it possible without using cocos2D? Please help me for this.
Thanks in advance.
Try to use the - (void)scrollViewDidScroll:(UIScrollView *)scrollView of UIScrollViewDelegate.
The table view is a sub-class of UIScrollView.

How to zoom image in iPhone?

I need to zoom an image in iphone...while the user double clicks on the image it will be zoomed in and on the next click it will be zoomed out....Can anybody direct me to how to do this???
You would probably have to use the size property of UIImage, triggered by UIImageView's touchesBegan method.
You can also use animations if you want the zoom effect to be smooth.
Another option could be to place your UIImageView inside a UIScrollView, or use a UIWebView.
Also, I suggest you take a look at the Three20 project. I think TTPhotoView supports zooming.
If you want to zoom and scroll your view, you need a UIScrollView. Tricking it to do what you want used to be very hard, however the problem of programmatic zooming of UIScrollView is now solved.
I have a described how to do it, created ZoomScrollView class (a drop-in subclass of UIScrollView) to encapsulate the solution and provided a working example at github.com/andreyvit/ScrollingMadness/ (the README contains a long description of two UIScrollView tricks and the reasoning behind them).

Resizing images on iPhone for UITableView image

I'm using a sectioned TableView, and I want to show an image on the left side of the cell.
If I pick one from the photo library (out of the example photos in simulator) and set it as UITableViewCell.imageView.image, it takes up the whole screen.
How can I resize the image so that it fits exactly into the cell's image view?
Thanks,
Yassin
This is basically the same question as How to scale a UIImageView proportionally ?, which has a good answer.
Add that category to your project and call it with the size of your view. I've used the code and it works well.