ios 8 tableview reloads automatically when view appears after pop

后端 未结 2 1730
时光取名叫无心
时光取名叫无心 2021-01-16 08:04

I have a table view, onclick of 7th row, I push another view. Then when I come back using pop, tableview is reloaded automatically in ios8. It does not happen is ios 7.

2条回答
  •  借酒劲吻你
    2021-01-16 08:32

    It shouldn't be reloading unless you tell it to. It's not automatically reloading in iOS 8 for me.

    The only possibilities that I can come up with are that

    1. you're using CoreData, an NSFetchedResutsController, and the same managedObjectContext in both view controllers. If something changes in the managedObjectContext in the second view controller, when you pop back, the fetchedResultsController will reload the table, or

    2. you're calling tableView.reloadData() in viewWillAppear() or viewDidAppear().

提交回复
热议问题