I have a table view (view 1) with some cells that when selected let’s the user configure some app settings on another view (view 2). This process is managed by a navigationcontroller, and the settings are always stored and retrieved from the standard user defaults.
The problem starts as one of those properties is displayed on view 1 on the detail text label of a cell, and is edited on view2 in a text label.
If the user is in the process of editing the attribute, on view 2, on the text label and he presses the back button to return to view 1, it’s cell’s detail Text Label isn’t immediately updated. (on exiting the view, I have saved the data on the user defaults and forced a synchronize, and when loading the view 1 I forced the tableview to reload data)
The detail text label it’s only updated after forcing a reloadData on the tableView 0.4s after the view appeared on the iPhone Simulator, and not before. This could be a little jarring for a user.
Does anyone has better solution? The perfect solution would be simple to implement
and instantaneous.
Thanks
A better solution would be to pass the changed information from view 2 to view 1 through a delegate protocol or some other form of communication while the data is being saved to the defaults. If for some reason your saving to the NSUserDefaults failed then this would break but it should fix your lag problem.