Coder Social home page Coder Social logo

swift-tableviewfun-lab-wdc01-seng-ft-060120's Introduction

TableView Lab

GraceHopper

Meow. -Cat

Learning Objectives

In this lab, you'll get more practice with TableViews and view controllers.

Instructions

Cats: Our furry friends that make our lives better and are the reason the Internet exists. They're cute, they're lovable, and sometimes they even come in boxes.

Cat-in-the-Box!

In this lab, you're going to create an iOS app that will list a bunch of kitty breeds. When you're done, it will look like this:

Cats!

This app is backed by a table view, and also includes a navigation controller for managing the nav bar at the top of the screen.

This lab shouldn't be too difficult, so you're not being given a lot of guidance in this one. However, if you thoroughly read through the previous lessons, you should have no problem. Feel free to refer to the previous two lessons on table views if you get stuck.

Here are the tasks you must do in order to complete this app:

  1. In Main.storyboard, drag a new Table View Controller from the object library to the storyboard.
  2. Don't forget to set Table View Controller as the initial view controller!
  3. Embed a navigation controller in the Table View Controller Scene.
  4. Set the title in the nav bar to Cats.
  5. Set the reuse identifier of the table view's cells to "KittyCell".
  6. Set the class of the table view controller in Main.storyboard to ViewController (the name of the class you are implementing in ViewController.swift).
  7. Implement the three methods required of table view controllers in ViewController in the ViewController.swift file. (Refer back to previous lessons if you can't remember what three methods you need to implement, or use Xcode's autocomplete function to give you some hints.)

When you've completed the above steps, build and run your app. You should see something like this in the simulator:

Cats!

View this lesson on Learn.co

swift-tableviewfun-lab-wdc01-seng-ft-060120's People

Contributors

annjohn avatar jimcampagno avatar johann avatar mdippery avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.