My question is two part:
Part 1:
I've a UITableView
that has 4 rows, when the user click on any cell, it will display an internal UITableView
, i've expanded the size of the master UITableView
, then insert the internal UITableView
internalTableView = [[InternalApartmentTableViewController alloc] initWithFrame:CGRectMake(0, 44, 550, (([[tableContent objectAtIndex:indexPath.row] count] - 1) * 44))];
[cell addSubview:internalTableView];
The didSelectedRow is:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (selectedInternal != -1) {
selectedInternal = -1;
} else {
selectedInternal = indexPath.row;
[internalTableView removeFromSuperview];
[internalTableView release];
}
[tableViews reloadData];
}
i was testing the app using a small number of row for the internal UITableView
, the height = 700 and everything work perfectly, between when i've used a real data, the height = 2500 and when the data displayed, the height appear around = 1000, i don't need the internal UITableView
to be scrollable, just the master UITableView
is scrollable.
So, how can i expand the frame size of the UTableView
as much as i want?
Part 2:
In the internal UITableView
, I've used a custom cell that contain labels and images and 2 buttons, one of the buttons when it's clicked, i wanna show a UIPopOver
from where it is, i can't determine the place of the button in the view, actually, i can't figure out which view shall i need to use to display the UIPopOver
in the screen using
[popoverController presentPopoverFromRect: //(How can i get the rect for the button)
inView: //(in which view should the PopOver appear, master UITableView or Internal UITableView or Custom Cell)
permittedArrowDirections:UIPopoverArrowDirectionLeft
animated:YES];
Any help will be appreciated.