SHARE
TWEET

Untitled

a guest Aug 17th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. override func viewWillAppear(_ animated: Bool) {
  2.     super.viewWillAppear(true)
  3.  
  4.     if let indexPath = savedIndexPath {
  5.         messageArray[indexPath.row].flag = true
  6.         messagesTable.reloadRows(at: [indexPath], with: .none)
  7.     }
  8. }
  9.  
  10. func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  11.     // Save indexPath to remember scroll position
  12.     self.savedIndexPath = indexPath
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top