how can I run a function before viewdidload ?

how can I run a function before viewdidload ?

I want to show JSON Data in tableview, I can get json data and print but I can not show getting json data in tableview

How can I do?

You will need to call the tableview's reloadData function after you are finished retrieving the JSON data.

how can I run a function before viewdidload ?
 
 
Q