I've created a custom UIView, and inside that UIView, I add a UITableView like thus:
treeView = [[UITableView alloc] initWithFrame:CGRectMake(0, 80, slider.frame.size.width, slider.frame.size.height - 80)];
[treeView setDelegate:self];
[treeView setDataSource:self];
[self addSubview:treeView];
[treeView release];
When the app loads, the table seems to load fine. However, when I try to scroll the table, it does not respond to the touches at all.
I also implement these delegate/data source methods:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
Does anyone have any idea why this is so?
Thanks
There are several possibilities:
userInteractionEnabled
set to NO.pointInside:withEvent:
or hitTest:withEvent:
incorrectly.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With