Monday, June 4, 2018

WEEK 9

Task:
This weak was based on the animation framework in which i build a popping balloon app.

Implementation:
I added balloon popping and a basic balloon image to the assets folder in the Xcode.

I added 3 variables.

ViewDidLoad function was modified to add timer which gets triggered each second and addBalloons function is called.


Then to add the gravity effect to the balloons i made addBalloons function which is connected to didPopballoon with the help of button which i created.

  Function didPopBalloon was added to change the image of basic balloon to popped balloon when it strikes and the animation last for 0.4 seconds and popping balloon images fades away.



Then i added points like a score board to calculate the number of clicks.

Runtime images:







Reflection:

  • how to make a image fade with the help of UIView.animation
  • Learnt to make use of gravity

WEEK 5

Task:
This application is for the users who travel a lot or love to travel because this app helps the user to track their trip its duration, data and destination. This app also saves the pictures from the trip.
Implementation:

  • Delete ViewController and add 2 TableViewController 
  • name the first identifier as tripcell
  • change 2nd TableViewController title to TripInfo and its typecontent to staticCells 
  • modify the harder to be nil and number of rows should be increased to 4.
  • save and cancel should be added to the first row
  • three labels are added TripDuration, TripDate, TripLocation and add textfield.
class TripViewController 
 

segue acts like a bridge between ViewController. i added segue between two TripDetailsViewController. following is the segue identifier and function


Making 3 different variables for date, destination and duration.




Runtime images:






2nd screen after clicking on melbourne



3rd screen for Sydney


4th screen for Adelaide


Reflection:

  • how to create instance of another file
  • how to call function to different file
  • how to make a segue
  • dynamic and prototype cells





WEEK 4

Task:
The objective of this lab is to develop a simple music player app using some of the UIKit controls, and also give you experience to implement apps separating UI-related logic to core functionalities.

Implementation:

First i copied song folder which was in the Xcode project and i added one song on my own.
then i copied the music file to the Xcode.
i added labels, slider and 4 buttons in ViewController.




 Then i declared variables 

Then i made functions for play, pause, stop, previous and next
 
song i added

Runtime images:

Main screen

List of songs

Information about the singer

Review about the singers



Reflection:


  • how to use textField
  • how to use textView
  • how to link multiple viewControllers together using buttons
  • how to use navigation view controller

WEEK 3

Task:
In this week I made a memory game in which the grid was 4*4 with 16 different buttons and we have to click on the random button and if the image matches with the previous image user will score a point or there will be no point achieved.

Implementation:

add 16 Buttons on the screen and add 4 images to each button.




































I added my own pictures of hulk, ironman, spiderman and superman.


when the image matches with the same previous image score is added.



Then i set the constraints for a better gaming layout and alignment

then we added reset button 




Runtime images:




Reflection:


  • how to add more than one button to same action
  • learnt how to add outlets
  • learnt how to add action methods and OutletCollection
  • how to set random values in a array with the help of aec4random_(UInt32())
  • how to use constraints to use the app on any phone.

WEEK 1

Task:
In this we learn how to join a team "Ios Developer University Program"

Implementation:




  • Invitation was sent to all the students through email which was about joining IOS Developer University Program.
  • After clicking on the invitation code it leads to the apple developer site 
  • create the apple ID and if already have you can enter your username and password.
  • log in into he website 
  • enter the link and agree with the ISO Developer University Program.
  • Get certificate by clicking launchpad then others then KeyAccess Option
  • upload the certificate to the apple developer site



Runtime images:



Reflection:


  • how Xcode works
  • how to become the IOS Developer University Program member

WEEK 2


Task 1: First task was a light lamp app in which we have to insert 2 images of bulb one in on state and other one in off state and by clicking the button the image changes from off to on state and we also kept track of number of clicks by the user.

Implementation:
I added 2 images of bulb on and bulb off in assets.xcassets folder.

I added a button from utilities area and dragging it into the screen and resizing it to the same as the size of the screen.
 Then I assigned the lightoff image to the button.

Then I added the Action Handler to assign what button does and added the label to count the clicks by the user.

Then to change the image on the button click i used “setImage” function.



After that I used If-Else statement to satisfy 2 conditions of lightoff and lighton when the button is pressed.

Runtime images:

Reflection:
What I learned:
·         How to insert images into the XCode.
·         How to add button and label in the View Controller.
·         How to assign the action with the help of “Action Handler”
·         How to assign tags to different images and shift them using if-else statement.

      TASK 2:
       To create a calculator which can perform addition, subtraction, multiplication and division     and showing the result and keeping the track of all the calculations.
   
      Implementation:

  I added two labels for result and history to show the result by passing the reference and history of        the calculations.


      created a function for addition in which i created a variable for values of type double in which we pre-defined values were passed by reference and on those 2 values the addition takes place.
      
          

       created same function with two variables x and y  for subtraction.
       


      created a function for multiplication and division in which i created a variable for values of type double in which we pre-defined values were passed by reference and on those 2 values multiplication and division takes place.

     

    Runtime Images
     

     Reflection:


  •      learned how to use If-else statement
  •      learned how to use switch statement
  •      How to add button and label in the View Controller.
  •      How to assign the action with the help of “Action Handler”