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?
Add a comment |
- The Overflow Blog
-
-
- Featured on Meta
-
-
-
Related
Hot Network Questions
- Without AC can there be a function with linearly ordered fibers from the powerset of an infinite set to the set?
- How do translators decide what to use for the title of books of the Bible?
- TV series about a vampire schoolboy
- What do WTS, WTB, H, radshare, etc mean?
- How to handle Expeditious Retreat with the optional chase rules
- Where can I get another Lightscale Trident (or is it impossible to get another one)?
- Stacking of Shield spell when used with Enspelled Armor
- Why does mass appear in both the Einstein Field Equations, and the equations of motion of particles interacting via non-gravitational forces
- What is 'combined entry length' in forced internal convection problems?
- Bone as a structural material; or, making a building's skeleton literal
- Why did the 8087's constant ROM contain the value ln(2)/3?
- What is the meaning of this Spanish road sign symbols?
- Make a hexagonal earth with geometry nodes in blender 5.0
- Is user enumeration a problem for a passwordless app?
- Showing that the one-point compactification of an open set in the Euclidean plane is path-connected
- How to execute machine code in QuickBasic under DosBox?
- Launching windows commandline commands within a WSL, what's the story?
- What is this G1000 MFD symbol?
- Stochastic order of generalized chi-square distributions
- Upgrading Ubuntu from 25.04 to 25.10: No new release found
- Merging 2 videos : AAC as input, but Vorbis as output. Need to have AAC as output
- Is Brian Ripley’s Pattern Recognition and NN book still an insightful read?
- How to solder/desolder components on a 3mm aluminum-backed PCB?
- Did Indy need to access the map room?
lang-objectivec