NomadStyle
π Start mobile journey today!
π©βπ» Enjoy programming diaries!
π Study with us from anyw
19/07/2021
Day 84. App life cycle
Hey there! I've already learned about different stages of the view controller life cycle. The life cycle of an app is almost the same way.
ππ‘π ππ’ππππ«ππ§π π¬πππ ππ¬ π¨π ππ‘π ππ©π© π₯π’ππ ππ²ππ₯π:
Not runningπ΄: The app hasnβt been launched or has been terminated.
Inactiveπ‘: The app is running in the foreground but isnβt receiving touch events.
Activeπ’: The app is running in the foreground and receiving events.
Backgroundπ : The app is executing code but is not visible onscreen. When the user quits an app, the system moves the app to the background state briefly before suspending it.
Suspendedπ΄: The app is in memory but isnβt executing code.
We need to know the lifecycle of the app to execute code on time. For example, when the app launches, we could trigger a network call to fetch new data. When the app closes, we can save the user's progress.
Now I need to figure out how delegates work.π¬
22/06/2021
Day 71-72.ππ. πππ πππ« ππ¨π§ππ«π¨π₯π₯ππ«π¬
Hi there! π₯°
A tab bar controller allows you to arrange your app according to distinct modes or sections. For example, the Clock app is divided into five modes: World Clock, Alarm, Bedtime, Stopwatch, and Timer.
A tab bar interface features a tab bar view, which runs along the bottom of the appβs screen. Each tab can contain its own independent navigation hierarchy, with the tab bar controller coordinating the navigation between the different view hierarchies.
ππ‘π’π¬ πππ²π¬ π’ π₯πππ«π§ππ:
β«οΈHow to appropriately use a tab bar controller
β«οΈHow to add a tab bar controller
β«οΈHow to add view controllers to the tab bar controller
β«οΈHow to customize tab bar items
It seemed to me that switching between view controllers in this way is super convenient. But I'm not sure that in this case the view controllers can interact with each otherπ§
Do you use tab bar controllers? What do you think about it?
Click here to claim your Sponsored Listing.
Category
Website
Address
Opening Hours
| Monday | 09:00 - 18:00 |
| Tuesday | 09:00 - 18:00 |
| Wednesday | 09:00 - 18:00 |
| Thursday | 09:00 - 18:00 |
| Friday | 09:00 - 18:00 |