How to make the scrolling faster in UITableView when the table has thousands of rows? - objective-c

My app has a UITableView and the table has near 5 Thousand rows (the app basically displays history in the form of vertical timeline), it's very tedious to scroll from top to bottom or vice versa, Any suggestions how can i make the scrolling better (faster), i don't wanna inculde section indexes to the right of the screen. Regards.

Have you implemented a search field? This could be used by users to find a specific entry, or range of entries. Then, when they scroll, they are only looking at a filtered list.
Also, try and categorise the rows, to create more of a hierarchical navigation, and reduce the number of rows per screen.

One of the way to make scrolling efficient is 'reusing' UITableViewCell

Related

Nice and easy way to move Table View Cells onto one single row under a section in a UITableViewController?

What would be the best way to make all the Table View Cells under a Table View section be on one row as if they were grid squares? I want to still use UITableView but just make the cells single square blocks that together fill up an entire row. (It would be similar to a Collection View except I want to use a UITableView to accomplish this).
Thanks in advance.
UITableView is single column and linear. You can't do what you're describing with it. That's the purpose of the UICollectionView; it's not limited in the format of the cells.

How does the Reeder Mac app animate lists when switching folders?

Initially I was under the impression that it uses the table row slideup/down animations while inserting/deleting new rows but I doubt if it's doing that as it does it so fluidly even with thousands of items in the list (otherwise it would take a lot of time for the deletions/insertions to work).
Am I right in my assumption that it's simply attaching a new instance of the News list at the bottom of the screen, shrinking the above one while the one at the bottom expands to fill up space?
UPDATE:
Please see this video of what I mean: http://dl.dropbox.com/u/4960327/ReederAnim.mov
I can not tell you exactly how Silvio Rizzi made this, but as you see in the playback, a list view is added behind the shown list view, and the front list view fades out (.alpha = 0.0;) while the list view behind it expands its height per row.
When you desicate it frame by frame it becomes quite clear what he does, and it is really not that advanced. But I have to admit, with the white "milky" polished interface, it looks quite neat.
In addition, you can see that while animating, the background list view only renders the top 7 entries (hopefully calculated by dividing the view height with the average height of the cells shown) making the list view quick to load. Then afterwards, he can load an extended array of cells once you start scrolling, or in a background thread starting once the animation is complete.

Load 1000 record to UITableView with Paging

How do I load 1000 record to UITableView with Paging and load on scrolling ?
Paging in tables is something tricky in iOS.
First of all decide how many rows do you want to display in one page.
According to that load every records when you travel through paging. This will help to work better execution of application.
I recommend you to fist create a UITableView in UIView.
Then add two button at the top of tableview. At first show 1-10 records.
When you click next button show records like 10 to 20 in table view.
and when you click previous butoon show records from 1-10.
Here you have take a variable which counts the no of records displayed.
Hope it will help you.

how to make the table view to scroll till the last row in the table

I have some 10 rows in my table. I can able to scroll the table view, but the scroll is not fixed. when i leave the scroll the table is again hiding the last row. Can any one help me out in this issue.
Thanks in advance
You need to adjust the size of table view and also set the autosizing in inspector from IB.
It is hard to give an opinion without any code, but have you checked that your Table is not larger that the size of the view? Maybe the bottom of your Table is just displayed outside the window.
If not, you shall post the code of your controller methods to get some more accurate help.
Are you using interface builder or everything is defined in the code?

Fastest method for rendering a table view cell?

I'm developing an application that requires me to display many short strings of text in table cells. Currently, I'm using a default table view cell with about 14 UILabels added. Half of these labels contain static text that will not be changed, while the other half contains dynamic data that has to be updated when the table is scrolled.
As my clients are complaining that the table is lagging, I am wondering if there is a more optimized way to display the data, and improve scrolling performance. For example, would the table cells render faster as the table is scrolled if the fixed text is rendered directly onto the view, instead of being contained in UILabels? What other methods can I use to improve scrolling performance?
Performance issues in table view scrolling can be caused by any number of issues. For example:
Make sure the UILabels are opaque to avoid blending. (You can select the color blended layers option in the Core Animation instrument to verify this).
Make sure you're recycling table view cells by using dequeueReusableCellWithIdentifier:
It might be helpful if you could post your implementation of tableView:cellForRowAtIndexPath:
additionally to anshuchimala's answer i would recommend you to remove the static labels and integrate it into a UIImageVie which you use in your tableviewcell as a background image.
Apart from that opacity (as mentioned by anshuchimala) is a big performance-blocker, but also the extensive use ofNSDateFormatter instances can vastly decrease your performance (especially the instantion of NSDateFormatter instances need a lot of power)