I have a page which checks for internet connectivity, and then performs various actions based on the result. For example, if there is no internet connection, buttons to download files are disabled, certain buttons are not present in the navigation bar, certain text is different colour etc.
I would like to add a “refresh” button so the user can connect to the internet and reload the page.
My question is, how do I do the view refresh? Calling [self viewDidLoad]; surely isn’t right, even though this is where all the logic exists. Do I need to remove the view from the superView and re-insert it or is there a way to do it without deleting?
Thanks
Write your entire logic of Refreshing or view design in separate method and call it when you refresh it again.