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.

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

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

  • 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
  • Mrunal Kharod
    Mrunal Kharod
    10,657 Points

    Labels disappear when button is pressed....

    Posted July 20, 2016 4:51am by Mrunal Kharod
    Mrunal Kharod
    10,657 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • Pierre-Emmanuel Turcotte
    Pierre-Emmanuel Turcotte
    13,670 Points

    Isn't it considered "implementing" when declaring the *_predictions variable inside the header file?

    Posted December 29, 2014 7:19pm by Pierre-Emmanuel Turcotte
    Pierre-Emmanuel Turcotte
    13,670 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • Caleb Kleveter
    Caleb Kleveter
    37,862 Points

    Can't I just import the crystal ball class even though it is not considered good practice?

    Posted December 9, 2014 10:49pm by Caleb Kleveter
    Caleb Kleveter
    37,862 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    0 Answers

  • Gautier Gédoux
    Gautier Gédoux
    5,006 Points

    why is it better to @class than #import in that case

    Posted November 1, 2014 2:50pm by Gautier Gédoux
    Gautier Gédoux
    5,006 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • Shawn Bramhill
    Shawn Bramhill
    1,417 Points

    read only

    Posted October 6, 2014 12:34am by Shawn Bramhill
    Shawn Bramhill
    1,417 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • Shawn Bramhill
    Shawn Bramhill
    1,417 Points

    read only

    Posted October 6, 2014 12:00am by Shawn Bramhill
    Shawn Bramhill
    1,417 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    0 Answers

  • Eduardo Rojas
    Eduardo Rojas
    4,084 Points

    Problem When Trying To Add The Random Text Color To THViewController.m

    Posted August 10, 2014 7:34am by Eduardo Rojas
    Eduardo Rojas
    4,084 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • Liang Jin
    Liang Jin
    1,080 Points

    When set the array property to be ready only, error occurred in .m file

    Posted August 4, 2014 12:31am by Liang Jin
    Liang Jin
    1,080 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • ryanlee4
    ryanlee4
    1,984 Points

    when the simulator is iPhone 4 inch with 64bit, the Xcode shows this error: implicit conversion loses integer precision

    Posted July 30, 2014 8:19pm by ryanlee4
    ryanlee4
    1,984 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • David Lunn
    David Lunn
    1,326 Points

    Error

    Posted July 25, 2014 9:32pm by David Lunn
    David Lunn
    1,326 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • Ben Junya
    Ben Junya
    12,365 Points

    Text label is blank when you press the button

    Posted July 21, 2014 2:25am by Ben Junya
    Ben Junya
    12,365 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    3 Answers

  • Lex Lawless
    Lex Lawless
    1,773 Points

    THCrystalBall.m when Predictions button is pressed, Breakpoint message

    Posted July 10, 2014 8:09pm by Lex Lawless
    Lex Lawless
    1,773 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • Mike Gilroy
    Mike Gilroy
    7,411 Points

    Readonly Attributes: 'randomPrediction' bug

    Posted July 2, 2014 3:04pm by Mike Gilroy
    Mike Gilroy
    7,411 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    4 Answers

  • Nuri Amari
    Nuri Amari
    8,212 Points

    The Predictions Getter & _Predictions Instance Variable

    Posted June 25, 2014 9:52pm by Nuri Amari
    Nuri Amari
    8,212 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • Marlon Pleitez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Marlon Pleitez
    Full Stack JavaScript Techdegree Student 9,563 Points

    Making a method to return NSColor?

    Posted June 5, 2014 9:45pm by Marlon Pleitez
    .a{fill-rule:evenodd;}techdegree
    Marlon Pleitez
    Full Stack JavaScript Techdegree Student 9,563 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    3 Answers

  • João Henrique
    João Henrique
    110 Points

    Underscore on predictions

    Posted May 4, 2014 3:59am by João Henrique
    João Henrique
    110 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    2 Answers

  • James Hughes
    James Hughes
    1,366 Points

    Crystal Ball - after changing classes, get compile error.

    Posted May 2, 2014 8:53am by James Hughes
    James Hughes
    1,366 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    3 Answers

  • Joannie Huang
    Joannie Huang
    6,195 Points

    When I execute the code, it will have a thread regarding the memory thrown.

    Posted April 17, 2014 3:16pm by Joannie Huang
    Joannie Huang
    6,195 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    4 Answers

  • Soojin Ro
    Soojin Ro
    13,331 Points

    Why do we use @class?

    Posted April 10, 2014 9:23am by Soojin Ro
    Soojin Ro
    13,331 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • Demetrios Tsakiris
    PLUS
    Demetrios Tsakiris
    Courses Plus Student 1,935 Points

    Custom Class not working as shown in video on my end

    Posted April 3, 2014 11:34pm by Demetrios Tsakiris
    Demetrios Tsakiris
    Courses Plus Student 1,935 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    1 Answer

  • filibertoheiras
    filibertoheiras
    3,211 Points

    #import vs @class

    Posted April 3, 2014 7:56pm by filibertoheiras
    filibertoheiras
    3,211 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    3 Answers

  • Ludwing Najera
    Ludwing Najera
    4,596 Points

    please help! readonly attribute rejecting prewritten code!

    Posted March 21, 2014 8:22pm by Ludwing Najera
    Ludwing Najera
    4,596 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    4 Answers

  • Jeff Benusa
    Jeff Benusa
    22,004 Points

    Getter method not called when @CrystalBall created

    Posted March 15, 2014 11:05pm by Jeff Benusa
    Jeff Benusa
    22,004 Points
    • iOS
    • Build a Simple iPhone App (iOS7)
    • Refactoring into a Model
    • Readonly Attribute

    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