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 09-07-2009, 06:11 AM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 11
Question Parent UIScrollview taking precedence over Modal UITableView upon scrolling

I have a main UIScrollView to scroll images - when the user clicks on an image, I'm pushing a new UITableView to display data for that image, etc.

I'm doing it with:

Code:
[self presentModalViewController:controllerTableView animated:YES];
The data in the table view display fine, etc and I can select a cell to even get more details, etc (using a Navigation Controller too obviously).

Problem is when I try to scroll the UITableView up or down - all the events are caught by the parent UIScrollView and then it just dismisses the table view and scroll to the next image, etc...

How can I have scrolling working on the current (and subview) table view (UITableView) and not the parent one?
Do I need to have the table view be the first responder? I did subclass UITableView and did override the touch events methods but this does not work - if I turn off scrolling on the parent scrollView, it no longer scroll obviously but I still can't scroll up or down in the table view ;(

I've done a lot of searching and tried a lot of things but I'm at wits end - would really appreciated some help. Am targeting 2.2.1 FYI.

Thanks in advance

--Franky
Corsu is offline   Reply With Quote
Old 11-19-2009, 11:25 AM   #2 (permalink)
shiva
 
shiva.0537's Avatar
 
Join Date: Jun 2009
Location: Hyderabad
Age: 25
Posts: 54
Send a message via Skype™ to shiva.0537
Default

Hi,

I too need help. please answer..
shiva.0537 is offline   Reply With Quote
Old 11-19-2009, 12:55 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 11
Arrow

The way I solved it is by disabling scrolling (scrollEnabled attribute on scrollView) on the parent view right before pushing the new view and then I re-enabled scrolling onto the parent view before dismissing the pushed view, upon closing it. Works great.
Corsu is offline   Reply With Quote
Old 11-20-2009, 03:31 AM   #4 (permalink)
shiva
 
shiva.0537's Avatar
 
Join Date: Jun 2009
Location: Hyderabad
Age: 25
Posts: 54
Send a message via Skype™ to shiva.0537
Default

Quote:
Originally Posted by Corsu View Post
The way I solved it is by disabling scrolling (scrollEnabled attribute on scrollView) on the parent view right before pushing the new view and then I re-enabled scrolling onto the parent view before dismissing the pushed view, upon closing it. Works great.
Hi
Thank you for your quick reply. If you dont have any problem, can you post the code also. other wise send to my mail ID smabasivarao4u@gmail.com
shiva.0537 is offline   Reply With Quote
Reply

Bookmarks

Tags
uiscrollview, uitableview

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: 266
17 members and 249 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
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:49 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0