I am reading data from server, however there is a certain time period (for example between 10 pm-6 am) there is no data. If user chooses within that certain time period, app is crashing! Is there any way to tell user there is no data, please choose other time period and prevent crashing!
Sorry if my question is so simple, but I could not able to come up with “key word” to search.
Any help or idea would be appreciated! Thanks a lot in advance.
Once you check that the data is nil, you can show a pop-up with a UIAlertView: