Posts

Showing posts from June, 2023

Friday 23rd June - Week 16

Image
 As I am still having trouble connecting the WillyWeather API to retrieve the data, today I worked on the UI screens and getting the design up and running so they are ready for the code. I worked on the LIST page today where I implemented an expand and collapse feature to view the details of each location. I have made arrays for the name of location, hours to location and klms to location - the next step is to connect the API to these arrays so they display the correct information. I also used a rotate function so when the expand button is clicked, it rotates 180 degrees so it is ready to be collapsed. 

Friday 15th June - Week 15

Image
 This week I spent hours on trying to connect the WillyWeather API and kept failing and getting very confused. So I decided to have a break from that and focus on something else. In the search sun view controller I managed to fix the drop down button and display the options the user can choose from. The issue was that I hadn't connected the Touch Up Inside event to the button clicking function/method.   I also managed to display the selected date and area in the output which will help me later when I filter through the API with the users selected preference. That will be next weeks job.  Additionally, I played around with the design and layout a little more, even though I know this part isn't necessary until the end, it was nice to see the design come together bit by bit. 

Friday 9th June - Week 14

Image
 This week I worked on the implementation of GoogleMaps SDK. I was very excited to successfully add the map view to the homepage of my app. In the image below you can see that I have also successfully added a notification pop up to ensure the user agrees to showing their current location. However, the blue dot for current location is not showing - I think it may have something to do with the simulator but when I tried to export the app onto my mobile device it would not let me so I can't be sure. You can also see I figured out how to add markers to the map. I have been trying to connected data from WillyWeather to these markers but I am still working it out. I added the SPOTTER logo on the map and starting working on the second tab (SUN SEARCH)  but there is still a lot of work left on that page. I am struggling to display the data from the API but I think by end of next week I will have accomplished that. 

Friday 2nd June - Week 13

 Today I worked on connecting the WillyWeather API to my Xcode project. First, I registered for an API Key on the WillyWeather website. For the time being, I can only use 10 locations as this is the free version. I successfully entered the required code on my project to connect the API. But I am still trying to figure out how to retrieve data from the API. I am using the location id '4988' as a tester to try and retrieve the rainfall probability of this particular location. Once I have successfully retrieved the unique data from that location, I will feel confident in finding all the other attributes like temperature, wind etc. I have also created a few scenes for my app including a nav bar controller and a table view controller - the table view controller will be where all the filtered locations will be displayed once the user searches their preference.