#Instructions to run the project
- Install libraries:
pod install
- add this file GoogleService-Info.plist to playas folder
- run the project and enjoy
In detail we show just today's predicton. The backend is updated just once per day. When we show detailview, if the date of the last prediction is not today, we update coredata with the latest prediction from the backend. If after this update, is today we show it. But if the backend hasn't the today's prediction, then we show an alert view.
Now we don't need to show an error in listview, because we actually don't download all the beaches every time, we just update the current beach and it's predictions in Detailview.
There are three uicontrols:
- Activity in pull and refresh in the list view.
- Switch control in settings page. It allow you hide or show the description in detail view.
- UIButton in login page.
Always I make a network request (even in uiwebview), I show my custom activity. It disappear when the request has finished. At the same time we show the activity in the status bar
I show my custom alert always that the network request fails
If we don't have a Photo for one beach, we show Google Street Maps Photo. The images are saved in coredata field, with checkbox for saving to disk.
- Google Street Maps: To get missing maps
- Firebase: As database webservice
- Aemet: to get weather and temperatures
Discover the most secret beaches in Gran Canaria
You can watch the list of the all the beaches. Pull You can pull the list to refresh it.
Check the current weather, water temperature and Ultraviolet index (electromagnetic radiation) You set your preference about show or hide the description in settings tab
Check out more about me (the developer) and the origin of the data. Here
From settings, tap in suscribe and You will be able to login with facebook to receive news in you email. If you want, you can use this credentials
- user: [email protected]
- password: udacity