Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • Danilo Chaves
    Danilo Chaves
    6,191 Points

    The Human Interface link on the teachers note seems to be outdated or not working.

    Posted September 14, 2016 12:35am by Danilo Chaves
    Danilo Chaves
    6,191 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Temporary Views

    2 Answers

  • charlesdi
    charlesdi
    5,706 Points

    Build Fail: Type 'VendingMachine' does not conform to protocol 'VendingMachineType'

    Posted September 6, 2016 11:31pm by charlesdi
    charlesdi
    5,706 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    0 Answers

  • Lincoln Matra
    Lincoln Matra
    7,878 Points

    When I click on the purchase button, I am receiving an NSInvalidArgumentException VendingMachine.ViewController purchase

    Posted August 11, 2016 2:35am by Lincoln Matra
    Lincoln Matra
    7,878 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Displaying an Alert View

    1 Answer

  • Charlie O'Shea
    Charlie O'Shea
    18,737 Points

    Extension Attempt: Display Available Stock

    Posted August 4, 2016 3:43pm by Charlie O'Shea
    Charlie O'Shea
    18,737 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Recap

    0 Answers

  • Unsubscribed User
    Unsubscribed User
    2,263 Points

    Why does Xcode report this (benign) issue: "Frame for "Dismiss" will be run at a different time" for Main.storyboard"

    Posted July 13, 2016 12:40am by Unsubscribed User
    Unsubscribed User
    2,263 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    0 Answers

  • Becky Christofferson
    Becky Christofferson
    15,047 Points

    Modal View Error

    Posted July 12, 2016 1:31am by Becky Christofferson
    Becky Christofferson
    15,047 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Displaying Custom Views Modally

    1 Answer

  • Bala Selvam
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Bala Selvam
    Python Development Techdegree Student 30,590 Points

    i have been typing in the code exactly as pasan has been doing it but i have about 20 errors is this normal?

    Posted July 11, 2016 2:27am by Bala Selvam
    .a{fill-rule:evenodd;}techdegree
    Bala Selvam
    Python Development Techdegree Student 30,590 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    1 Answer

  • Aditya Ramabadran
    Aditya Ramabadran
    3,746 Points

    Incorrect link in Teacher's Notes?

    Posted June 30, 2016 5:06am by Aditya Ramabadran
    Aditya Ramabadran
    3,746 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Temporary Views

    1 Answer

  • Jacob Evans
    Jacob Evans
    2,979 Points

    Quantity not completely resetting when selecting a different item?

    Posted June 17, 2016 9:04pm by Jacob Evans
    Jacob Evans
    2,979 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Comparing Answers

    3 Answers

  • Christian McMullin
    Christian McMullin
    13,086 Points

    code correction on reseting stepper value not just quantity variable.

    Posted June 16, 2016 9:32pm by Christian McMullin
    Christian McMullin
    13,086 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Adding User Interaction

    0 Answers

  • Rodrigo Chousal
    Rodrigo Chousal
    16,009 Points

    How does the "Insufficient Funds" error know the amount missing by just passing in let amount?

    Posted June 16, 2016 1:47am by Rodrigo Chousal
    Rodrigo Chousal
    16,009 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Comparing Answers

    1 Answer

  • Will Van de Walle
    Will Van de Walle
    2,352 Points

    How to present a modal view outside of a button?

    Posted May 22, 2016 5:15pm by Will Van de Walle
    Will Van de Walle
    2,352 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    32 Answers

  • M Talebi
    M Talebi
    3,125 Points

    Why did we have to include 4 catches?

    Posted May 10, 2016 2:08pm by M Talebi
    M Talebi
    3,125 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Comparing Answers

    1 Answer

  • Sacha Karsenty
    Sacha Karsenty
    3,903 Points

    I can't find the DepositViewcontroller in the dropdown...

    Posted April 29, 2016 1:07pm by Sacha Karsenty
    Sacha Karsenty
    3,903 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    2 Answers

  • mattcleary2
    mattcleary2
    19,953 Points

    The function signature does not match the one accepted by the handler parameter?

    Posted March 7, 2016 5:48pm by mattcleary2
    mattcleary2
    19,953 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Displaying Additional Views

    2 Answers

  • Stijn van Lieshout
    Stijn van Lieshout
    3,646 Points

    Adding a new cocoa file that inherits from UIViewController doesn't work...

    Posted March 5, 2016 6:42pm by Stijn van Lieshout
    Stijn van Lieshout
    3,646 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Controlling Custom Views

    1 Answer

  • Daniel Yoo
    Daniel Yoo
    3,812 Points

    sender.value (UIStepper) does not reset

    Posted February 22, 2016 10:14am by Daniel Yoo
    Daniel Yoo
    3,812 Points
    • iOS
    • Build a Vending Machine App in Swift 2.0
    • Displaying Additional Views
    • Recap

    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