AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. πŸš€

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

New No-Code Track! πŸš€start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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

  • 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

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.