Note that there are some explanatory texts on larger screens.

plurals
  1. POReload currently loaded UIViewController
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COThere is no need to reload the view controller. Just re-initialize all the related iVars that you may have initilized in viewDidLoad: . You will need to invalidate the timer as you say. You can do all that in the IBAction method that you connect to the reload-button. What do you mean by "do the view controller animation"?
      singulars
    2. COthanks for the comment. if you see the above code, I would like to do everything as I would when the user starts from scratch. I was referring to the UIViewController setModalTransitionStyle that I had shown above. In other words, when refresh button is clicked, I would like to do the same exact thing as above (as if the user starts the quiz for the first time) by reloading the UIView controller completely without inducing any memory leaks.
      singulars
    3. COThat is the code where you instanciate and display the view controller for the first time. If you insist of doing exactly the same then you need to react to the reload action by making the presenting view controller dismiss the view controller, create a new one, load it and display it the usual way. But that is not what I would do. I would just set all related values to its original value, discard and re-fire the timer and problably add some proper animation.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload