Posted 06 August 2012 - 09:06 AM
It would be nice if we could improve Sensible's tableviews performance by disabling uitableview's delegate method tableView:heightForRowAtIndexPath: on demand.
Please notice that Apple's documentation specifies that implementing tableView:heightForRowAtIndexPath: has serious performance implications.
Ex you could add a property (ex PERFORMANCE_FLAG) on SCTableViewModel and implement the following function
if (self.PERFORMANCE_FLAG && [NSStringFromSelector(aSelector) isEqualToString:@"tableView:heightForRowAtIndexPath:"])
return [super respondsToSelector:aSelector];
The downside, is that when this flag is enabled, all the cells in the table will have the same height.
Posted 10 August 2012 - 03:52 AM
SCArrayOfItemsSection actually has a property called 'enableCellAutoResizing' which is TRUE by default. Setting this property to FALSE disables automatic resizing of cells. Please tell me if you need anything else.
Posted 10 August 2012 - 03:58 AM
That's good to know, but it won't improve the performance ;-)
If you have a table with ex 2000 rows then it's good to have what I'm proposing.
Posted 11 August 2012 - 06:47 PM
The 'enableCellAutoResizing' option was actually developed to improve performance for a customer who had about 5000 cells in his application. Please tell me if you're having any performance issues and we can consider restudying all this once more.
Thanks for all the feedback!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users