Try Mentor AI — Free Pilot! Get instant, personalized help while you learn. Be among the first to explore it and shape what comes next. JOIN NOW

🤑 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
  • jc laurent
    jc laurent
    6,351 Points

    fatal error: unexpectedly found nil while unwrapping an Optional value

    Posted November 30, 2016 4:51am by jc laurent
    jc laurent
    6,351 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Continuing Our Story

    11 Answers

  • Boris Likhobabin
    Boris Likhobabin
    3,581 Points

    But what if the second choice is nil don't we the have an empty button?

    Posted September 27, 2016 8:19am by Boris Likhobabin
    Boris Likhobabin
    3,581 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Making a Choice

    0 Answers

  • Alex Nelson
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Alex Nelson
    iOS Development Techdegree Student 6,173 Points

    Helpful tip on potential crash when running the project at the end of the video

    Posted September 22, 2016 6:53pm by Alex Nelson
    .a{fill-rule:evenodd;}techdegree
    Alex Nelson
    iOS Development Techdegree Student 6,173 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    0 Answers

  • Danny Kilkenny
    Danny Kilkenny
    4,507 Points

    How does it select the correct button

    Posted August 20, 2016 10:35pm by Danny Kilkenny
    Danny Kilkenny
    4,507 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Making a Choice

    1 Answer

  • Jordan George
    Jordan George
    9,926 Points

    How does NSLayoutConstraint know what size the artwork should be?

    Posted August 17, 2016 3:47am by Jordan George
    Jordan George
    9,926 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    1 Answer

  • Sebastian Nitu
    Sebastian Nitu
    8,616 Points

    PageController does not appear as an option in the Identity Inspector after adding a new file.

    Posted August 13, 2016 10:23am by Sebastian Nitu
    Sebastian Nitu
    8,616 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Page Controllers

    1 Answer

  • Kyle Papili
    Kyle Papili
    9,112 Points

    Cannot assign value of type '(String) -> Page' to type 'Page'

    Posted August 12, 2016 4:42am by Kyle Papili
    Kyle Papili
    9,112 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Prepare For Segue

    1 Answer

  • Paul M
    Paul M
    16,370 Points

    What does the keyword super do in front of the init?

    Posted August 6, 2016 10:04pm by Paul M
    Paul M
    16,370 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Page Controllers

    1 Answer

  • Kevin Gutowski
    Kevin Gutowski
    4,082 Points

    Seems like setting paragraph styles is quite a burden compared to design tools like Sketch.

    Posted July 31, 2016 8:30am by Kevin Gutowski
    Kevin Gutowski
    4,082 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Attributed Strings

    1 Answer

  • Marc Jones
    Marc Jones
    3,751 Points

    NSLayoutConstraint & ConstraintEqualToAnchor

    Posted July 24, 2016 9:38am by Marc Jones
    Marc Jones
    3,751 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    0 Answers

  • Nikita Voloboev
    Nikita Voloboev
    4,816 Points

    Does not run, gives 'Thread 1: breakpoint 1.3' error and I don't know why

    Posted July 15, 2016 7:37pm by Nikita Voloboev
    Nikita Voloboev
    4,816 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Page Controllers

    4 Answers

  • Abdulla AlKhenji
    Abdulla AlKhenji
    2,150 Points

    What did Pasan mean when he said that he didn't build apps using storyboards? Is it not an ideal way of building apps?

    Posted July 14, 2016 7:57am by Abdulla AlKhenji
    Abdulla AlKhenji
    2,150 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Page Controllers

    1 Answer

  • Jatinder singh saini
    PLUS
    Jatinder singh saini
    Courses Plus Student 191 Points

    Error editor placeholder in source file

    Posted June 17, 2016 8:46am by Jatinder singh saini
    Jatinder singh saini
    Courses Plus Student 191 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Prepare For Segue

    3 Answers

  • nicholasdevereaux
    nicholasdevereaux
    16,353 Points

    prepareForSegue function

    Posted May 14, 2016 9:59pm by nicholasdevereaux
    nicholasdevereaux
    16,353 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Prepare For Segue

    4 Answers

  • Brian Uribe
    Brian Uribe
    3,488 Points

    Thread 1 SIGABRT

    Posted May 11, 2016 2:28pm by Brian Uribe
    Brian Uribe
    3,488 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    3 Answers

  • Anna Vorozova
    PLUS
    Anna Vorozova
    Courses Plus Student 523 Points

    What difference is between leftAnchor and leadingAnchor or rightAnchor and trailingAnchor?

    Posted May 5, 2016 8:42am by Anna Vorozova
    Anna Vorozova
    Courses Plus Student 523 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Displaying the Story

    1 Answer

  • Chris Stromberg
    PLUS
    Chris Stromberg
    Courses Plus Student 13,389 Points

    What exactly are we Initializing here? Why is this required? required init? (coder aDecoder: NSCoder)

    Posted April 23, 2016 6:22pm by Chris Stromberg
    Chris Stromberg
    Courses Plus Student 13,389 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Page Controllers

    1 Answer

  • Anjali Pasupathy
    Anjali Pasupathy
    28,883 Points

    Why not use a helper method that you can call inside loadFirstChoice() and loadSecondChoice() to make the code more DRY?

    Posted April 8, 2016 5:20pm by Anjali Pasupathy
    Anjali Pasupathy
    28,883 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Continuing Our Story

    0 Answers

  • vpqyrkdqqt
    vpqyrkdqqt
    2,284 Points

    Why I am getting this error in Swift: expected ',' separator when I use #selector like in the video?

    Posted April 4, 2016 10:05pm by vpqyrkdqqt
    vpqyrkdqqt
    2,284 Points
    • iOS
    • Build an Interactive Story App with Swift 2
    • Creating the User Interface Programmatically
    • Continuing Our Story

    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.