Table View Reload Sections Crashes
问题 I have a table view with 4 sections and 1-2 table view cells per section. The first cell has a uiswitch as an accessory view and controls the color theme of the app, switching between day mode and night mode. Once the switch is hit a function is called, changing the colors of the nav bar and background color. In that function I've also put the line [self.tableview reloadData]; to update the table itself with the new colors. It works fine but theres no animation to it, so I used this instead