pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift
changeset 4347 8792c0b2dafe
parent 4317 dc2cbe11bb3d
child 4348 20436ae8fa52
     1.1 --- a/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Tue Mar 27 13:29:36 2018 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Tue Mar 27 15:30:54 2018 +0200
     1.3 @@ -59,11 +59,16 @@
     1.4          NotificationCenter.default.addObserver(self, selector: #selector(didBecomeInactive), name: NSNotification.Name.UIApplicationDidEnterBackground, object: nil)
     1.5      }
     1.6  
     1.7 +    deinit {
     1.8 +        NotificationCenter.default.removeObserver(self, name: NSNotification.Name.UIApplicationDidBecomeActive, object: nil)
     1.9 +        NotificationCenter.default.removeObserver(self, name: NSNotification.Name.UIApplicationDidEnterBackground, object: nil)
    1.10 +    }
    1.11 +
    1.12      @objc func didBecomeActive() {
    1.13  
    1.14          if tableView.tableHeaderView == nil {
    1.15              tableView.tableHeaderView = searchController.searchBar
    1.16 -            tableView.setContentOffset(CGPoint(x: 0.0, y: searchController.searchBar.frame.size.height), animated: false)
    1.17 +            //tableView.setContentOffset(CGPoint(x: 0.0, y: searchController.searchBar.frame.size.height), animated: false)
    1.18  
    1.19          }
    1.20      }