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.

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

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

  • 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
  • Raymond Choy
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points

    Why won't background color of page controller change to .blue?

    Posted December 17, 2019 2:54am by Raymond Choy
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Page Controllers

    2 Answers

  • Mary Kenkel
    Mary Kenkel
    4,028 Points

    The image is distorted

    Posted January 25, 2019 8:27pm by Mary Kenkel
    Mary Kenkel
    4,028 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    1 Answer

  • Justin Furstoss
    Justin Furstoss
    5,166 Points

    UIButton choice only coming up as "Play Again"

    Posted August 4, 2018 12:01am by Justin Furstoss
    Justin Furstoss
    5,166 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Continuing Our Story

    1 Answer

  • Jonathan Mazala
    Jonathan Mazala
    9,860 Points

    why change background to white?

    Posted July 17, 2018 5:05am by Jonathan Mazala
    Jonathan Mazala
    9,860 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Continuing Our Story

    0 Answers

  • Alex Busu
    PLUS
    Alex Busu
    Courses Plus Student 11,819 Points

    How to make it work in XCode 9.1 with Swift 4

    Posted March 21, 2018 10:13am by Alex Busu
    Alex Busu
    Courses Plus Student 11,819 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Continuing Our Story

    4 Answers

  • Rea Rahhal
    PLUS
    Rea Rahhal
    Courses Plus Student 4,732 Points

    use of u unresolved identifier "Adventure" in view controller.swift

    Posted March 2, 2018 6:15pm by Rea Rahhal
    Rea Rahhal
    Courses Plus Student 4,732 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Prepare For Segue

    1 Answer

  • Aananya Vyas
    Aananya Vyas
    20,157 Points

    unable to run after involving the given code

    Posted February 1, 2018 9:12pm by Aananya Vyas
    Aananya Vyas
    20,157 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Making a Choice

    1 Answer

  • Qasa Lee
    Qasa Lee
    18,916 Points

    for Xcode 9 and Swift 4 there's a change we may encounter:

    Posted October 30, 2017 1:25pm by Qasa Lee
    Qasa Lee
    18,916 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Attributed Strings

    3 Answers

  • Harris Ryder
    Harris Ryder
    1,333 Points

    anchors, what are they?

    Posted September 28, 2017 11:12am by Harris Ryder
    Harris Ryder
    1,333 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    1 Answer

  • dipanchokshi
    dipanchokshi
    3,216 Points

    Story text is not displaying

    Posted September 13, 2017 6:03pm by dipanchokshi
    dipanchokshi
    3,216 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Displaying the Story

    3 Answers

  • Miguel Sousa
    Miguel Sousa
    6,872 Points

    Where's the bottom constraint for storyLabel?

    Posted August 27, 2017 6:19pm by Miguel Sousa
    Miguel Sousa
    6,872 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Displaying the Story

    0 Answers

  • Andrew Lundy
    Andrew Lundy
    13,269 Points

    How does it know to get the text from .returnTrip?

    Posted August 24, 2017 12:27am by Andrew Lundy
    Andrew Lundy
    13,269 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Prepare For Segue

    2 Answers

  • Amanda Augusto
    Amanda Augusto
    10,217 Points

    Unnecessary duplicated code

    Posted August 12, 2017 10:22pm by Amanda Augusto
    Amanda Augusto
    10,217 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Continuing Our Story

    0 Answers

  • Andrew Fakher
    PLUS
    Andrew Fakher
    Courses Plus Student 1,675 Points

    the story does't displayed when i press the 'Start your Adventure' button??

    Posted July 22, 2017 2:07pm by Andrew Fakher
    Andrew Fakher
    Courses Plus Student 1,675 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Displaying the Story

    0 Answers

  • Wing Sun Cheung
    Wing Sun Cheung
    4,933 Points

    The store property of attributedText is NOT a type NSMutableAttributedString

    Posted April 28, 2017 3:27pm by Wing Sun Cheung
    Wing Sun Cheung
    4,933 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Attributed Strings

    2 Answers

  • Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points

    PageController text not showing

    Posted April 13, 2017 5:31am by Ingo Ngoyama
    Ingo Ngoyama
    4,882 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Page Controllers

    1 Answer

  • Craig Kuriger
    Craig Kuriger
    37,104 Points

    Anchoring to the bottom the of the navigation

    Posted March 17, 2017 2:47am by Craig Kuriger
    Craig Kuriger
    37,104 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Creating Views Programmatically

    1 Answer

  • Davide Callegari
    Davide Callegari
    5,360 Points

    No teacher's notes

    Posted March 1, 2017 4:35pm by Davide Callegari
    Davide Callegari
    5,360 Points
    • iOS
    • Build an Interactive Story App with Swift
    • Creating the User Interface Programmatically
    • Making a Choice

    4 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