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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -