Saturday, February 24, 2024
HomeiOS Developmentios - select between two views when beginning the app

ios – select between two views when beginning the app


in Swift:

my preliminary app has a view witch incorporates a particulars web page, the place some data is fetched from an json file and it’s displayed in a desk View; subsequent, I have to deal with Web connection; I bought two circumstances:

  1. when beginning the app, if there isn’t a web connection, I wish to show a white clean view with an exercise Indicator. When the web connection is restored, I wish to show the main points View.

  2. when beginning the app, if there may be web connection and I flip it off after 1 second, not all the info is about up within the tableView. I wish to show an alert with no web connection, and after I flip the web again on, the info to proceed to be loaded.

I’ve created an NetworkMonitor for getting the standing of the web connection; I’ve additionally tried to arrange the views within the scene delegate, however I don t know if it’s the proper strategy.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments