Hello everyone,
I'm using an UITableView
with style UITableViewStyleGrouped
initialized as follows:
CGRect imgFrame = CGRectMake(0, 0, 320, 650);
UITableView *myTable = [[UITableView alloc] initWithFrame:imgFrame style:UITableViewStyleGrouped];
myTable.dataSource = self;
myTable.delegate = self; //make the current object the event handler for view
[self.view addSubview:myTable];
[myTable release];
The data for the table is stored in an array dataArray
. dataArray
itself is a collection of arrays where each array represent a section of the table. Currently I have only one section with 100 records/rows.
When I installed the app onto my IPhone, I observed that this UITableView consumed 20 MB of iPhone memory. If I changed the table view style to UITableViewStylePlain
, then it consumes only 4MB of memory.
What is wrong with "UITableViewStyleGrouped"?
Regards, prathumca.