NomadStyle

NomadStyle

Share

πŸš€ 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?

Want your school to be the top-listed School/college in Tallinn?
Click here to claim your Sponsored Listing.

Address

Tallinn

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