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-2008, 02:15 AM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 5
davide.bettio is on a distinguished road
Default Embedding a UIScrollView within a UIScrollView

I have a UIScrollView set up with pagingEnabled turned on to let me horizontally swipe a page at a time. However, I now need each "page" (which is basically a vertically large UIView) to scroll vertically. So, the UIView for each "page" lives inside another UIScrollView to allow for vertical scrolling within the page and that is placed in the parent UIScrollView to allow horizontal swiping between the pages

The problem is this isn't working out as nicely as I hoped. The horizontal swipes work, but to scroll vertically, I have to tap and hold for a second for it to work at all - and sometimes, no matter what I do I can't scroll vertically on a page. I have turned off delayContentTouches for the parent UIScrollView but that doesn't seem to help.

I've seen a couple apps do this type of thing I'm trying to do - specifically AIM does it with chats (you can scroll vertically on the current chat and swipe horizontally between them) and VerseWise also does this. Any ideas or some code?
davide.bettio is offline   Reply With Quote
Old 11-17-2008, 02:49 AM   #2 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 15
Handy is on a distinguished road
Default

Quote:
Originally Posted by davide.bettio View Post
The problem is this isn't working out as nicely as I hoped. The horizontal swipes work, but to scroll vertically, I have to tap and hold for a second for it to work at all - and sometimes, no matter what I do I can't scroll vertically on a page. I have turned off delayContentTouches for the parent UIScrollView but that doesn't seem to help.
This is a real problem. I failed to make the nested scroll views (I tried to embed table in a scroll view) to work properly. "Inner" view got the "filtered" touches with some delay, properties tuning did not help.

In fact, I have never seen an iPhone application where UITableView (that is UIScrollView decendant) is in a "horisontal" scroll view. I do not say it is impossible, but probably it will be quite tricky to implement things like this.

Alas, guy, but you are not alone.
Handy is offline   Reply With Quote
Old 11-17-2008, 02:53 AM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 5
davide.bettio is on a distinguished road
Default

look at AIM app
try to open 2-3 chat and scroll horizontally...
davide.bettio is offline   Reply With Quote
Old 08-27-2009, 05:52 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 1
iRegistered is on a distinguished road
Default

There is a replacement class for UIScrollView called zoomScrollView, however it breaks in OS 3.0.

OS 3.0 is supposed to make nesting ScrollViews easier to manage, however I am still having problems.

I nested them, however the behavior is a bit erratic. Has anyone gotten this to work like the Photo app?
iRegistered is offline   Reply With Quote
Old 07-08-2010, 11:46 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 18
teras is on a distinguished road
Default

Someone has an answer to this question?
Thank you!
teras 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: 364
6 members and 358 guests
chemistry, daudrizek, HemiMG, Kirkout, MarkC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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