• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • Joe Scotto
    Joe Scotto
    8,282 Points

    Why is the FactModel.swift file not included in some way withing ViewController.swift?

    Posted October 24, 2016 7:34pm by Joe Scotto
    Joe Scotto
    8,282 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    1 Answer

  • Shirin B
    Shirin B
    54 Points

    When I type in import GameKit, Xcode doesn't recognize it. What should i do? It's like Xcode doesn't know it?

    Posted September 19, 2016 9:46pm by Shirin B
    Shirin B
    54 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    0 Answers

  • Cory Norell
    Cory Norell
    10,612 Points

    Pressing the "Show another fun fact" button doesn't change text

    Posted September 6, 2016 9:26pm by Cory Norell
    Cory Norell
    10,612 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Creating a Data Collection

    3 Answers

  • Zachary Kinnear
    PLUS
    Zachary Kinnear
    Courses Plus Student 2,269 Points

    Not displaying Random Fact only displaying second Fact.

    Posted August 7, 2016 4:55am by Zachary Kinnear
    Zachary Kinnear
    Courses Plus Student 2,269 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    1 Answer

  • jon kelson
    jon kelson
    5,149 Points

    GKRandomSource.sharedRandom() v's arc4random uniform

    Posted July 5, 2016 7:38pm by jon kelson
    jon kelson
    5,149 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    0 Answers

  • Sonia Feldman
    Sonia Feldman
    3,873 Points

    How to Prevent Fact Repetition

    Posted June 28, 2016 4:03pm by Sonia Feldman
    Sonia Feldman
    3,873 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    3 Answers

  • robert rutherford
    robert rutherford
    2,055 Points

    What is the scope of the FactModel struct?

    Posted June 11, 2016 7:49pm by robert rutherford
    robert rutherford
    2,055 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    2 Answers

  • Joe Nelson
    Joe Nelson
    1,331 Points

    Video Transcript Is Off

    Posted May 23, 2016 8:01pm by Joe Nelson
    Joe Nelson
    1,331 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    0 Answers

  • Christine otieno
    Christine otieno
    3,901 Points

    My xcode cant find IntWithUpperBound.... I am stuck -.-

    Posted May 18, 2016 12:20am by Christine otieno
    Christine otieno
    3,901 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    1 Answer

  • jiranan supawong
    jiranan supawong
    5,716 Points

    Why do we not use an initializer method when creating the model in our app?

    Posted May 14, 2016 7:12pm by jiranan supawong
    jiranan supawong
    5,716 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Recap: Data Models

    0 Answers

  • Mike Hansen
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mike Hansen
    Python Web Development Techdegree Student 3,048 Points

    Use of unresolved identifier 'GKRandomNumber'

    Posted May 3, 2016 10:05am by Mike Hansen
    .a{fill-rule:evenodd;}techdegree
    Mike Hansen
    Python Web Development Techdegree Student 3,048 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    3 Answers

  • mahi
    mahi
    7,137 Points

    Just experimenting. Need some help.

    Posted April 1, 2016 1:57pm by mahi
    mahi
    7,137 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    1 Answer

  • Reagen Rahardjo
    Reagen Rahardjo
    3,770 Points

    after creating empty swift file there is a error message

    Posted March 29, 2016 8:36am by Reagen Rahardjo
    Reagen Rahardjo
    3,770 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Refactoring into a Model

    0 Answers

  • Arman Arutyunov
    Arman Arutyunov
    21,900 Points

    Guys my iPhone simulator doesn't show anything on the screen + I have an error in the code but it's the same as Pasan's

    Posted March 16, 2016 7:08pm by Arman Arutyunov
    Arman Arutyunov
    21,900 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    1 Answer

  • MINJI KIM
    MINJI KIM
    1,905 Points

    how to show the text without ... in label

    Posted March 13, 2016 11:47pm by MINJI KIM
    MINJI KIM
    1,905 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Refactoring into a Model

    1 Answer

  • Brendan Corey
    PLUS
    Brendan Corey
    Courses Plus Student 5,745 Points

    Generate a random number?

    Posted March 5, 2016 10:22pm by Brendan Corey
    Brendan Corey
    Courses Plus Student 5,745 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    2 Answers

  • Corey Hellwege
    Corey Hellwege
    3,863 Points

    Can't add text to a stored property?

    Posted March 2, 2016 6:20am by Corey Hellwege
    Corey Hellwege
    3,863 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Creating a Data Collection

    1 Answer

  • Garrett Milovich
    Garrett Milovich
    7,282 Points

    ERROR: GKRandomSource is only available on iOS 9.0 or newer

    Posted February 8, 2016 8:39pm by Garrett Milovich
    Garrett Milovich
    7,282 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    1 Answer

  • roohart
    roohart
    5,529 Points

    Help needed to understand the getRandomFact method

    Posted February 2, 2016 4:17pm by roohart
    roohart
    5,529 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    2 Answers

  • Leslie Borrell
    Leslie Borrell
    2,318 Points

    for some reason i'm getting an exception when i run the app. the exception is being thrown in appDelegate.swift.

    Posted January 28, 2016 7:57pm by Leslie Borrell
    Leslie Borrell
    2,318 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Creating a Data Collection

    2 Answers

  • Erman Sahin Tatar
    Erman Sahin Tatar
    3,223 Points

    Code is not working on my mac

    Posted January 11, 2016 1:32am by Erman Sahin Tatar
    Erman Sahin Tatar
    3,223 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    0 Answers

  • Erman Sahin Tatar
    Erman Sahin Tatar
    3,223 Points

    " Class ViewController has no initializers " I am getting this error in my code (the same code with video)

    Posted January 10, 2016 10:56pm by Erman Sahin Tatar
    Erman Sahin Tatar
    3,223 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    8 Answers

  • swiftlover
    swiftlover
    1,597 Points

    Can we use arc4random_Uniform() here to get different fun facts each time the user presses the button?

    Posted January 10, 2016 4:42am by swiftlover
    swiftlover
    1,597 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Finishing Up Our Model

    3 Answers

  • Abdijabar Mohamed
    Abdijabar Mohamed
    1,462 Points

    Why do we not use an initializer method when creating the model in our app?

    Posted January 2, 2016 10:48am by Abdijabar Mohamed
    Abdijabar Mohamed
    1,462 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Recap: Data Models

    1 Answer

  • Rubens Neto
    Rubens Neto
    13,422 Points

    iOS online database

    Posted December 15, 2015 4:37pm by Rubens Neto
    Rubens Neto
    13,422 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Creating a Data Collection

    4 Answers

  • Omotayo Olawepo
    Omotayo Olawepo
    2,803 Points

    Hey, is it possible to store an image in the array as opposed to the text

    Posted December 5, 2015 6:08pm by Omotayo Olawepo
    Omotayo Olawepo
    2,803 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Creating a Data Collection

    1 Answer

  • Emmanuel Darmon
    Emmanuel Darmon
    6,115 Points

    facts on type "FactsModel"

    Posted November 25, 2015 4:24pm by Emmanuel Darmon
    Emmanuel Darmon
    6,115 Points
    • iOS
    • Build a Simple iPhone App with Swift 2.0
    • Structs as Data Models
    • Structs or Classes

    5 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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.