view did load calling everytime on navigation
<p>I have a table view in which i display contact names from selecting the names from the database and storing it in an array.i have called the method for selecting data from the database in the view did load method of root view controller. Now i have another view for adding new contacts and in the view on pressing back button i navigate to the main view controller by using push view controller. And the view gets loaded once again calling the method of selecting the data from the database i have written in view did load method which i don't want this.i can load the table view using the array containing the data. Somebody please help me out.</p>
