I am developing an iPad application using storyboard. In my application I have connected one modal view controller from first view controller using segue modal presentation for fetching some data. Modal view controller is closed by clicking on the cancel button in the modal view. Cancel button and first view controller are connected by using a modal segue. In first view controller I have a table view and I added some values to the tableview using a button. But my problem is if go to modal view then return back to my first view controller the table view in the first view controller is reloaded and I lost the result in the tableview. How do I prevent the data reload in the table view when the modal view is dismissed on pressing cancel.
viewwillappear:
of first viewController. – Rajesh