UITableViews inside UIScrollView and didSelectRowAtIndexPath

I have two (parallel) TableViews inside a ScrollView: each of the TableViews have the necessary height to accommodate all elements (and scrollEnabled = NO), And the scrollView has Vertical scroll enabled and horizontal disabled. At first everything works if I click in an item didSelectRowAtIndexPath is fired in the corresponding tableView but if I scroll down the new visible items don't fire didSelectRowAtIndexPath. If i scroll to the initial scroll state (top) the items do fire didSelectRowAtIndexPath.
Strange...

iPad, iPhone OS 3.1.3

Posted on Sep 27, 2010 3:05 AM

Reply
2 replies

Sep 27, 2010 4:00 AM in response to Lain_OTN

Made some research:
Actually I have The two UITableView are inside an UIView and its the UIView the one that is added into the UIScrollView. I've made some research and the UIView is not resizing properly, (Set the subview clip off and found the problem) The UIView is smaller than the TableViews but I'm not able to resize the view...

CGRect frame = self.view.frame;
frame.size.width = width;
frame.size.height = newHeight;
self.view.frame = frame;
[self.view setNeedsLayout];
[self.view setNeedsDisplay];


newHeight is the height of the taller UITableView.
But the View is not resizing.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

UITableViews inside UIScrollView and didSelectRowAtIndexPath

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.