ios - viewWillAppear is not being called when using Modal Segue -
i have table view controller , modal segue can add data populating uitableview. code went working not working because viewwillappear not being called when closing modal view, therefore table view not repopulating table new data.
override func viewwillappear(animated: bool) { super.viewwillappear(animated); self.tableview.reloaddata() println("view load called") } i added following code when closing modal view.
self.presentingviewcontroller!.viewwillappear(true) does know why may happening. mentioned working fine , can not figure out why has stopped working now.
update seems changed modal segue over current context over context therefore because view doesn't go away doesn't recall viewwillload. changed , works again.
Comments
Post a Comment