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 08-23-2010, 12:42 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
speckpgh is on a distinguished road
Default UIScrollView setZoomScale problem/question

Tab Bar App

First View is a ScrollView which has an ImageView as its subview, loaded from a file.

All of the above configured in IB.

Application properly launches and I can scroll around the image and all is right with the world.

I have it scaling in and out with pinch controls no problem as well.

Now however I am trying to utilize setZoomScale to 1.0 when the user double taps... And it does indeed set the ZoomScale to 1.0..

The problem is however, that it moves the view to position 0,0 when it does it... completely ignoring the contentOffset values... Even when my next call after the setZoomScale is a call to set the contentOffset to soemthing else, nothing happens...

So, I'm a bit confused.. I'm not sure why the setZoomScale refocuses the view to 0,0 and worse yet, I don't understand why the view would not move to the contentOffset that the next line of code says it should even if it does reset it to 0,0.

Any ideas or suggestions? I know I could use zoomToRect, but I would really like to know what is going on here.
speckpgh is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, setzoomscale, uiscrollview

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: 340
5 members and 335 guests
freewind, HemiMG, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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