I have a hard-coded “load” cell as the last cell of my table view, when it is generated I call some methods to load new data from the web service, and when I get a response, I save the data, send a notification and call reloadData in my table view.
I want to do the same, but for the first cell of my table.
My table works over time, so scrolling down shows you items from later dates, and the idea is to let the user scroll higher and load earlier items.
I cannot successfully set the initial offset to hide this boot cell, because if it is shown, it will start loading the early data, of course. I know scrollToRowAtIndexPath:atScrollPosition:animated:, but I can’t find a suitable place to call it (with a pointer path: 1: 0 line 1 section 0).
As I mentioned earlier, I need to set this visible section before calling the called cells.
Has anyone tried this cell at the beginning of a table view?
How to set the initial visible section in my table view before the first cells are even called to load?
Should I do something more interesting here? As with tableviewHeader, and when it is shown, I insert a row at the 0: 0 index path, which is the loader, and delete it after reboot?