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 03-21-2010, 02:04 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 566
Default Preventing a UIScrollView from overscrolling?

I'm using a UIScrollView in an app that I'm working on. Inside the scrollview is an image, which fills the scrollview. This is all working fine.

However, my issue is that if the user drags to scroll too far in one direction, the original view is shown - basically equating to a white part of the screen, which makes the app look sloppy.

Is there any way to fix this so that the scroll stops right at the edge of the scroll view? Or at least shows the same image underneath so that there isn't a huge white spot on the screen?
Noise is offline   Reply With Quote
Old 03-21-2010, 03:15 AM   #2 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by Noise View Post
I'm using a UIScrollView in an app that I'm working on. Inside the scrollview is an image, which fills the scrollview. This is all working fine.

However, my issue is that if the user drags to scroll too far in one direction, the original view is shown - basically equating to a white part of the screen, which makes the app look sloppy.

Is there any way to fix this so that the scroll stops right at the edge of the scroll view? Or at least shows the same image underneath so that there isn't a huge white spot on the screen?
you have to adjust the scrollviews's contentSize to be equal to the area that you want scrollable.
__________________
regards

Oliver Drobnik
Cocoanetics - Our DNA is programmed in Objective-C.

Linguan – makes localizing strings file fun!

Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Oliver Drobnik is offline   Reply With Quote
Reply

Bookmarks

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: 236
16 members and 220 guests
ADY, Alsahir, cacao, dacapo, Dani77, Desert Diva, djohnson, F_Bryant, HemiMG, jansan, M@realobjects, MarkC, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

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