0

I have some code that I want to run in a utility application whenever the main view is shown. I put the code in viewDidLoad, and it only runs when the program starts up. If I flip to the other view, and then flip back to the main view, the code doesn't run. So how can I get this code to run everytime the main view is shown?

1 Answer 1

1

viewWillAppear: or viewDidAppear:

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.