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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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-05-2009, 10:01 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 3
Question Resize UIScrollView while Zooming

Hi there

How can i change the size of a scrollview while zooming? I need that for the following reasons:

Basically i'd like to have a Scrollable view which has a zoomable image on top and some NOT zoomable html text below. Therefor i've used a scrollview as the main container. Inside this container there is another scrollview containing the imageview and below is a webview which displays the html text.

So i want the inner scrollview to to change its own height when zooming the image. Like this the whole content is vertically scrollable from the main scrollview. The image's content would then only need to be scrolled horizontally as the the image's height is fully visible within the content of the main scrollview.

It's like when reading an email in the mobile mail app except that there is the non-zoomable view on top (the from, cc, subject fields) and the zoomable content below (email content).

Does anyone know how to achieve that?

thelightforce is offline   Reply With Quote
Old 11-06-2009, 09:26 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 3
Default Hacky solution

Ok, guys, I found a «solution» but this is not very elegant.
The view which is transformed by UIScrollview can override (void)setTransformCGAffineTransform) which is called repeatedly while zooming. there you can handle your «onZoom» events. If anyone has a better solution I'd love to hear it.

Cheers
thelightforce is offline   Reply With Quote
Reply

Bookmarks

Tags
size, uiscrollview, 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: 246
23 members and 223 guests
ADY, AragornSG, bookesp, chillyh, dacapo, Dani77, Davey555, Dominus, dre, glenn_sayers, HemiMG, JasonR, karlam963, M.A.S., marshusensei, mer10, nobre84, Oral B, prchn4christ, Raggou, Rudy, spiderguy84, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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