evgenyneu / ios-imagescroll

iOS: example of using image view inside a scroll view with auto layout, written in Obective-C.
60 stars 15 forks source link

iPad version #3

Closed Sun3 closed 10 years ago

Sun3 commented 10 years ago

I am using it great for iPhone screens but when I placed the same code in an iPad Storyboard the Image does not zoom well, very choppy. Also when view loads you can move around the image without zooming.

Any ideas?

Thanks for a great control.

evgenyneu commented 10 years ago

Hi, sorry I forgot to make the demo app universal. Thanks for reminding. Now it works on iPad.

Also added instructions to the readme. Let me know if you still have issues.

Sun3 commented 10 years ago

evgenyneum

That worked great thank you.

I have another item I was trying to handle. Let's say I am in portrait mode and I zoon into the image then I rotate to landscape, is there a way to keep the image zoomed in?

Great control... thanks.

Sun3 commented 10 years ago

ps: I added below code to add the feature to double tap to zoom in and double tap again to zoom out. Please feel free to add it to your control if you like

' @property (readwrite, nonatomic) CGFloat maximumScale;

pragma mark - Zoom and Zoom Out

pragma mark Utility methods

evgenyneu commented 10 years ago

@Sun3, if you want to keep zoom level on orientation change please look at updateZoom method where it sets zoomScale.

I would leave this demo without double tap. The main purpose of this repo is to show the basics of using scroll view and image with auto layout. I did not intend to build full-featured control for dealing with images. If you want to do that - feel free to fork this repo or create one from scratch.

Sun3 commented 10 years ago

@evgenyneu thanks...

evgenyneu commented 10 years ago

@Sun3 thank you for your feedback. Let me know how it goes with your image control.