Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableViewController not redrawing new cell text label after popViewControllerAnimated
    primarykey
    data
    text
    <p>I have a problemetic <strong>UITableViewController</strong> fails to redraw an updated cell after a child view is removed. </p> <p>Here's what's happening. After changing data in a child view, the parent view controller reloads the source data array and runs <strong>[tableView reloadData]</strong> via a PostNotification. After this triggers, I use <strong>popViewControllerAnimated</strong> to return to the parent UITableViewController (this pops the child view off the stack, and reveals the controller one level up). </p> <p>However, my updated data does not appear in the parent view controller! According to the debugger, the cell's label has been updated, but the visible label does not change. However, if I scroll-flick the table, momentarily moving the updated cell out of view, when it reappears the label is updated!</p> <p>I also try calling <strong>[tableView reloadData]</strong> via <strong>viewWillAppear</strong> but the issue still persists.</p> <p>Here is some additional info that may be helpful. I have a 3 views structured like this:</p> <pre><code>1/ SettingsViewController : UITableViewController 2/ -- UserView : UITableViewController 3/ ---- UserDetailsView : UIViewController &lt;UIActionSheetDelegate&gt; </code></pre> <p>I am calling UserDetailsView from inside UserView as follows:</p> <pre><code> UserDetailsView *userDetailsView = [[UserDetailsView alloc] init]; [self.navigationController pushViewController:userDetailsView animated:YES]; </code></pre> <p>If I return to the top-most controller (SettingsViewController) and then load the problematic controller (UserView), everything is drawn correctly. It is only when returning from a child view that this issue occurs.</p> <p>Thank you in advance for your suggestions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload