How is it possible to refresh/reload a modal view controller on button click?
I need to reload an entire view controller .
How is it possible to refresh/reload a modal view controller on button click? I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can dismiss your modal view controller and present it again setting the animation parameter to NO.
Another solution would be to embed your ViewController in a UINavigationController as its RootViewController (and present this one modally). When you have to reload your ViewController, simply use:
on the navigationController with an array containing a new instance of your ViewController.
Anyway, are you really sure you can’t simply reset all the contents of your UIViewController without “reloading” it from scratch?