I am making an IOS app where i am calling an API in viewDidLoad method of view controller. Now i want to reload the same view controller with the data that comes from server
viewDidAppear is definitely not the one you want to use, it will 'pause' the view from responding while you're loading the data.
viewDidAppear
Normally viewDidLoad is the one you want to place it.
viewDidLoad