Monday, June 4, 2018

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





No comments:

Post a Comment