Giter Club home page Giter Club logo

iosswiftworkshop's Introduction

Part 1

Download the Zip

pick_storyboard

  • UnZip the folder
  • Then double-click and open up the "iOSSwiftWorkshop.xcworkspace" file.

Go to Part1-Playground.playground

pick_storyboard

Complete the questions in the playground

Part 2

You will now be working with files in the Part 2 folder.

To the Part2.storyboard file and perform the following on the View Controller scene:

  • Add an ImageView into your screen
  • Add a Button into your screen
  • Connect up the ImageView (control + drag) to code
  • Connect up the Button to code
  • Add an image to the Assets.xcassets folder
  • Add a UIImage property inside your code and initialize it with the image you added in the Assets.xcassets folder ex: UIImage(named: "name_of_your_image")

Bonus Challenges:

  • Change the text on the Button to say "Show Image" (Use storyboard)
  • Add an action from the button from on storyboard to code and call it showImage
  • Change the color of the Button to Red (Use storyboard)
  • When the button get's pressed it should assign the UIImage property to the UIImageView's image property. ex: yourImageView.image = anImage

Part 3

Go to Part3-Playground.playground

Complete the questions in the playground

Part 4

You will now be working with files in the Part 4 folder.

Also, to make your app load the storyboard for Part 4, Switch the main interface to Part 4's storyboard.

pick_storyboard

To the TableViewController.swift file:

  • Make an array of 5 Strings
  • Change tableView's method for numberOfRowsInSection to return the count of strings in the array you just created
  • Add to tableView's method for cellForRowAtIndexPath to get the appropriate string based on what indexPath the row in the table should display
  • Se the cell.textLabel's text to be the approriate string

Bonus Challenge:

  • Set the cell.imageView's image to be the image you added to the project

Part 5

You will now be working with files in the Part 5 folder.

Also, to make your app load the storyboard for Part 5, Switch the main interface to Part 5's storyboard.

pick_storyboard

To the Add Message View Controller scene file:

  • Add a Textfield to get your username
  • Add a Textfield to get the message text
  • Save the message by setting a username and a text.
  • Check that your message appears in the Table when you run the app!!

Bonus Challenge:

  • Add an ImageView to your Screen.
  • Set the image to be the image you added to the project
  • Save the image when you save the message (an UIImage can be converted to an NSData, which can be converted to a PFFile, which can be saved)

iosswiftworkshop's People

Contributors

dmathewwws avatar adamdahan avatar

Watchers

Wister avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.