ios - Trying to render a large columnar grid within a UITableView -


I have created a type of GRID using utivive. For this, I have taken various labels to show the grid type line, I am using the line line, considering the grid there are about 88 columns in my tableview.

My problem is that when I scroll down to it, I have a jerky effect. Its performance is very poor. I am making about 108 labels and each line has 88 labels and 86 image views.

What steps do I need to take to improve scrolling performance?

I was using clear color for label background but later I removed those background colors.

To re-read your problem, I'm thinking horizontally with an incredibly detailed tableview and Scroll vertical If this is the case then you have to switch to UIScrollView and attach each item in this view. UIScrollView will only load those views that appear and provide the kind of scrolls they wish to perform.

This will be important to avoid this:

  // Using ARC, hence no release on UILabel - (zero) viewDidload {self.scrollView.backgroundColor = [UIColor whiteColor]; UIFont * font = [UIFont SystemFontoffSystem: 24]; CGSize size = [@ "10000: 10000" size font: font]; _scrollView.contentSize = CGSizeMake (10000 * size width, 10000 * size.); For (int y = 0; y & lt; 10000; y ++) {for (int x = 0; x & lt; 10000; x ++) {NSLog (@ "Loading:% d, % D ", x, y); UILabel * label = [[UILabel alloc] initWithFrame: CGRectMake (x * size. Width, y * size. Height, size width, size.)]; Label.font = font; Label.textAlignment = UITextAlignmentRight; Label.text = [NSString stringWithFormat: @ "% d:% d", x, y]; [_scrollViewSubview: Labels]; Although it will eventually load, it loads all of these labels and it will consume a ton of memory, while it will take you to lazy to see this view as only one I want to load like TableView, I will write an example this evening.   

Comments