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 09-22-2010, 02:37 AM   #1 (permalink)
Registered Member
 
screwtape's Avatar
 
Join Date: Jul 2010
Location: Nottingham
Posts: 54
screwtape is on a distinguished road
Send a message via Skype™ to screwtape
Default Changing the page size of a paged UIScrollView

Hi!

I've an interesting issue here. I've changed the frame size of a UIScrollView, and reset the contentOffset to where I want it to be. The new size is a quarter of the old size, and the offset is somewhere in what would have been page 1 (i.e. the second page), and is now page 7 (i.e. the eighth page). However, if I click on the view at all, the scrollview scrolls to what is now page 4 (i.e. the fifth page on my new size, and what would have been the beginning of the page on the old size).

When I scroll after this, it works fine, and uses the new page size perfectly.

Anyone any ideas why this might be happening? Do I need to do something to get it to re-calculate the paged size? I've tried setting pagingEnabled to no and back to yes, but that didn't help.
screwtape is offline   Reply With Quote
Old 09-24-2010, 05:44 AM   #2 (permalink)
Registered Member
 
screwtape's Avatar
 
Join Date: Jul 2010
Location: Nottingham
Posts: 54
screwtape is on a distinguished road
Send a message via Skype™ to screwtape
Default

Bump
screwtape is offline   Reply With Quote
Old 10-23-2010, 08:13 AM   #3 (permalink)
Registered Member
 
screwtape's Avatar
 
Join Date: Jul 2010
Location: Nottingham
Posts: 54
screwtape is on a distinguished road
Send a message via Skype™ to screwtape
Default

Ok, I think I've figured out what's going on, and described it here.
screwtape is offline   Reply With Quote
Reply

Bookmarks

Tags
page size, pagingenabled, 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: 346
12 members and 334 guests
2ndSegment, cgokey, djohnson, Domele, Hamad, markuschow, mistergreen2011, Objective Zero, pungs, revg, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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