Reload table view in real time

Posted by Lucas Vallim da Costa on Stack Overflow See other posts from Stack Overflow or by Lucas Vallim da Costa
Published on 2012-06-24T08:21:02Z Indexed on 2012/06/24 9:15 UTC
Read the original article Hit count: 201

The app receives a UILocalNotification, but if the user is at the UITableViewController at the fire time, the table view (containing the scheduled notifications) does not reload. The user has to get out of that view and load the view again so that the cells are loaded and, as the notification was already fired, it will not be displayed on any cell of that table view.

Problem is: If the user touches the specific tableView cell that contained the notification that just fired, the app crashes, cause the notification is not there anymore.

I've implemented the - (void)reloadData in every place possible, and it still doesn't load in real time.

What would be a better solution for this?

Other detail, how can I push a specific view after the notification is displayed (when the user slides the app icon when the phone is locked)?

Any help will be truly appreciated, since theres are the last details remaining to publish my first App.

© Stack Overflow or respective owner

Related posts about ios

Related posts about uitableview