Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-17-2010, 10:03 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 3
microfott is on a distinguished road
Question Block the pinch in a scrollview

Hi everybody, I need to block the pinch gesture of an image in a scrollview when the user reach the max or min value of scale.

I mean: when the user starts to pinch, the image starts zooming but when the max/min value of scale is reached, the zoom must stop also if the user's fingers are still moving..

Any suggestion how to do it?
I already set the max/min value of the scale (if too big/low) in scrollViewDidEndZooming.

I hope you understand my question.
microfott is offline   Reply With Quote
Old 11-17-2010, 10:21 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
ChrisL is on a distinguished road
Default

If I'm correctly understanding what you're describing, you can prevent this by setting the scroll view's bouncesZoom property to NO. That should stop the zooming immediately when the user hits one of the scale limits, instead of the default behavior of going beyond the limit and then "bouncing" back to the limit when the user lets go.
ChrisL is offline   Reply With Quote
Old 11-17-2010, 10:54 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 3
microfott is on a distinguished road
Default

Quote:
Originally Posted by ChrisL View Post
If I'm correctly understanding what you're describing, you can prevent this by setting the scroll view's bouncesZoom property to NO. That should stop the zooming immediately when the user hits one of the scale limits, instead of the default behavior of going beyond the limit and then "bouncing" back to the limit when the user lets go.
OMG .. I forgot to write "I'm a newbie" but you understood it by yourself... many thanks Chris, it's what I was searching for.

microfott is offline   Reply With Quote
Reply

Bookmarks

Tags
block, pinch, scrollview, zoom

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 375
7 members and 368 guests
apatsufas, Kirkout, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:44 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0