I'm trying to update the label.text I create in the header of a section when I add a new row without reloading the entire section.
Currently I found a solution but it requires a lot of if statements. I found out that the header of a section is actually a row as well, and the number of the row depends on the cpu architecture the iPhone has, if it's 32 the row number is 2147483647 if it's 64bit the row number is 9223372036854775807.
for iPhone 5 I do
self.tableView.reloadRowsAtIndexPaths([NSIndexPath(forRow:2147483647, inSection:1)], withRowAnimation: .Fade)
where 2147483647 is the row number of the header, ....cool, right?
Now I know this is not a good way to do it and I have to implement checks for the phone version. Is there another way to do this or the way I do it is fine?