Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Judith Straetemans
    Judith Straetemans
    1,807 Points

    Only 2 quotes are being accessed from Array with 10 quotes

    Posted November 1, 2015 9:38pm by Judith Straetemans
    Judith Straetemans
    1,807 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    3 Answers

  • Sungbae Park
    Sungbae Park
    9,389 Points

    let factBook = FactBook() but get "use of unresolved identifier 'FactBook'

    Posted September 27, 2015 8:05am by Sungbae Park
    Sungbae Park
    9,389 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • Cyrus Hung
    Cyrus Hung
    2,571 Points

    Why do we need to create a 'Struct" to store the "Array"? Is the "Array" good enough to do the job?

    Posted September 6, 2015 5:54am by Cyrus Hung
    Cyrus Hung
    2,571 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • dexter foo
    dexter foo
    8,233 Points

    why is the instance factBook defined as a let?

    Posted July 23, 2015 7:05am by dexter foo
    dexter foo
    8,233 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    0 Answers

  • Andrés Leal
    Andrés Leal
    9,563 Points

    Error! highlighted in green

    Posted May 3, 2015 9:27pm by Andrés Leal
    Andrés Leal
    9,563 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    3 Answers

  • Samar Khanna
    Samar Khanna
    1,757 Points

    Why do we have to assign the let constant at all?

    Posted April 27, 2015 8:53am by Samar Khanna
    Samar Khanna
    1,757 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    0 Answers

  • kian christensen
    kian christensen
    2,186 Points

    i made the folder with the array of facts but when i enter view controller it doesnt tranfer factsArray and FactBook

    Posted April 21, 2015 3:09am by kian christensen
    kian christensen
    2,186 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • Muji Paracha
    Muji Paracha
    1,852 Points

    why was factBook shown as a variable by xCode’s autocorrect, when it was declared with let? (04:30)

    Posted March 26, 2015 8:32pm by Muji Paracha
    Muji Paracha
    1,852 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    0 Answers

  • Abba Ismial
    Abba Ismial
    2,419 Points

    It does not play

    Posted March 1, 2015 4:21am by Abba Ismial
    Abba Ismial
    2,419 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    0 Answers

  • Nicholas Coleman
    Nicholas Coleman
    385 Points

    Error on the last line starting with "funFactLabel.text" highlighted in green says Thread 1: breakpoint 3.1

    Posted February 7, 2015 6:05pm by Nicholas Coleman
    Nicholas Coleman
    385 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    2 Answers

  • Anthony Woodman
    Anthony Woodman
    1,460 Points

    No sound on iPhone 5S.

    Posted January 18, 2015 12:28pm by Anthony Woodman
    Anthony Woodman
    1,460 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    0 Answers

  • Kenneth Clark
    Kenneth Clark
    973 Points

    Does the name of the struct have to match the file name?

    Posted December 11, 2014 5:01am by Kenneth Clark
    Kenneth Clark
    973 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    3 Answers

  • Yasir Ali
    Yasir Ali
    1,074 Points

    After setting up an array in the newer swift file, I get two errors

    Posted November 22, 2014 6:24am by Yasir Ali
    Yasir Ali
    1,074 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • Ben Chamla
    Ben Chamla
    4,518 Points

    Hi, I wanted to know how come we don't need to "import" the "FactBook.swift" at the top of the "ViewController". thanks

    Posted November 18, 2014 1:43am by Ben Chamla
    Ben Chamla
    4,518 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • Mark El-Lamaa
    Mark El-Lamaa
    1,634 Points

    Can someone please define these terms

    Posted October 25, 2014 3:48pm by Mark El-Lamaa
    Mark El-Lamaa
    1,634 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    1 Answer

  • Jeffrey Gossain
    Jeffrey Gossain
    5,935 Points

    Swift basics - "struct" : I don't remember visiting this at all in any of the courses yet. Am I missing something?

    Posted September 29, 2014 2:10am by Jeffrey Gossain
    Jeffrey Gossain
    5,935 Points
    • iOS
    • Build a Simple iPhone App with Swift
    • Creating a Data Model
    • Refactoring Into a Model

    3 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord