Swift #7

Yesterdays session we carried on with more Swift due to many of us handing in projects and not many people included cocopods. For this session we looked into more ways how to use cocopods and how it can be useful. we started by adding cocopods on the desktop thought the terminal. We then set up the project and made the code for making an app with a grid of names of people who has made posts. these posts were read from a page holding all the information where it was collected by using cocopods. this was quite interesting and made me wish i added this into my app design of the last project.

Swift #6

Screen Shot 2015-11-12 at 10.25.30

Today in class I worked on making some code using alarmofire and swiftyJSON this was So I could include some features like the weather. After importing the correct kits I was then able to work on displaying the weather. after adding the functions and all I was able to change locations to see what the weather was doing at the time. this was feeded to me though a website. I then wa able to make it display on the iphone screen when adding text boxes so they display them for everybody to to see. this includes a discription of that the weather is doing along with wind and temp

Screen Shot 2015-11-12 at 10.14.27 Screen Shot 2015-11-12 at 10.14.57

below is the code you need to add with the new IOS9 software due to being needed to have a secure website within their apps. This is a good thing for the safety for all of the users.  
Screen Shot 2015-11-12 at 10.10.25

Swift #5

Screen Shot 2015-10-29 at 09.31.48Screen Shot 2015-10-29 at 09.39.16

Today I made the code so that there could be a little navigation so i added some cocordinates going from on to the other so it looks like somebody is walking from the gardens to the beach and then to Boscombe. I could then see if i am entering or leaving an area but the user would never know so instead I added images to show the user either Bournemouth or Boscombe pier depending where the user is at that time. This is a nice display a as well as a useful feature for an app.

Screen Shot 2015-10-29 at 09.31.21

Screen Shot 2015-10-29 at 09.54.08Screen Shot 2015-10-29 at 09.55.29

Swift #4

Screen Shot 2015-10-22 at 09.22.07

In yesterdays workshop we carried on with making the map app on the simulator. What we did was add a GPRS signal on the map. we had add a option for the user to Allow or not the phone to view your location. If you said yes then this Blue dot will come up on your map. To make sure this works we had to make sure the user Location was switched on as we was using the simulator and not a real phone. Also we had to select where our location was AKA London. This is only because it is the simulator and cant really pick up our GPRS as we are not using a phone. With this information included you can then enter in the long and lat and it will give us the outcome of how many miles away that point is to the big blue dot which is where you are. 
Screen Shot 2015-10-22 at 10.12.44

Swift #3

Screen Shot 2015-10-15 at 10.19.40Screen Shot 2015-10-15 at 10.32.24

Today we are making a simple map app. Following on from last week we then got straight into it by adding in sliders labelling them latitude and longitude and setting them so they only go as far as the map lets you. Then I added a go button so when pressed it will then take you to that place, However I have no map at this time so I then go ahead and add a map onto the field and size it correctly. Now the map is in I then can press go and it will find the location and I will get the information where that point is but not within the app. So I had to add a pin drop into the map for where the location is to the coordinates.

Screen Shot 2015-10-15 at 11.02.57Screen Shot 2015-10-15 at 10.45.10Screen Shot 2015-10-15 at 10.48.37
I then was able to pin point different places using the Long and Lat however this just left lot of different pin points everywhere on the map. We then made this so it only displayed one pin point saying here. But where is here? So we changed it from here to the country what the pin point is in. But this didn’t work for when you have the pin point in the sea, so we made it say what ocean the pin is in. Then to finish of we added it so we can display a the postcode of the pin point. This really comes a far way by just adding bit by bit each time and its really amazing because not to long before I was just trying to add sliders and now i can pin point postcodes.

Screen Shot 2015-10-15 at 10.53.52Screen Shot 2015-10-15 at 11.03.24Screen Shot 2015-10-15 at 11.04.00

Swift #1

Screen Shot 2015-10-08 at 09.21.08

Started Swift today, First we started at the beginning showing how we can throw numbers into a string and then get them numbers back then we can then ask for it to give us the place 3 number (remember 0 is a number too) and then if gives me back the number four. Then finally we can add more number to the the string we have already made. We then did the same with names by adding names and then choosing the name in place 1 which was Sophie. We can then remove names after as well as add them like we did with the numbers. and finally we added ages to the people. This was interesting as we can make them have birthdays so it thinks like okay Tina is 20 but she has a birthday so she is 21 and so on depending how many birthday I have.

Screen Shot 2015-10-08 at 10.13.48

After adding the information about birthdays we then worked on making the visual look to an application. I then added a text box that I made be able to type into using the keyboard on the phone, this also included the emojis. We then was able to make the boxes bigger and have a whole page of text but this isnt really pretty but if fun to learn and be able to do.

Screen Shot 2015-10-08 at 10.01.32