Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • Sam Belcher
    Sam Belcher
    3,719 Points

    Constraints in Code iOS Challenge

    Posted February 25, 2018 8:00pm by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    0 Answers

  • Sam Belcher
    Sam Belcher
    3,719 Points

    Constraints in Code challenge

    Posted February 25, 2018 7:50pm by Sam Belcher
    Sam Belcher
    3,719 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    0 Answers

  • Travis Johnston
    Travis Johnston
    12,653 Points

    What am I doing wrong in this challenge?

    Posted November 7, 2017 8:19pm by Travis Johnston
    Travis Johnston
    12,653 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • michaellesniak
    michaellesniak
    10,443 Points

    Not passing the code challenge: iOS AutoLayout

    Posted September 7, 2017 7:37am by michaellesniak
    michaellesniak
    10,443 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Ahmed Elkasrawi
    Ahmed Elkasrawi
    2,756 Points

    Can someone figure out the mistake in the below code cause it's being compiled on Xcode & causing a compiler error here

    Posted July 31, 2017 11:51am by Ahmed Elkasrawi
    Ahmed Elkasrawi
    2,756 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Tim Watkins
    Tim Watkins
    16,034 Points

    Need help not sure how to pass

    Posted April 18, 2017 4:40am by Tim Watkins
    Tim Watkins
    16,034 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Matthew Ingram
    PLUS
    Matthew Ingram
    Courses Plus Student 4,718 Points

    Confused about why this is incorrect, there are no errors when i preview it.

    Posted April 7, 2017 8:35pm by Matthew Ingram
    Matthew Ingram
    Courses Plus Student 4,718 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Martel Storm
    Martel Storm
    4,157 Points

    Constraints in Code: Code Challenge: It says I can't use an array. I say bologna! Where did I mess up?

    Posted April 5, 2017 11:22pm by Martel Storm
    Martel Storm
    4,157 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • perpetual makayi
    perpetual makayi
    8,441 Points

    introduction to Auto layout

    Posted March 30, 2017 2:37pm by perpetual makayi
    perpetual makayi
    8,441 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    0 Answers

  • arnoldmukasa
    arnoldmukasa
    3,924 Points

    Please Help! I can't seem to figure out where I'm wrong in this challenge

    Posted March 27, 2017 1:40am by arnoldmukasa
    arnoldmukasa
    3,924 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Attila Marosi
    Attila Marosi
    6,144 Points

    Hello, could anyone help me? I've stucked in this exercise (I'm using Swift 3).

    Posted March 20, 2017 12:00pm by Attila Marosi
    Attila Marosi
    6,144 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • jc laurent
    jc laurent
    6,351 Points

    Don't forget to add the constraints to the parent view! that's not what i'm doing?

    Posted November 22, 2016 4:02am by jc laurent
    jc laurent
    6,351 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    2 Answers

  • jc laurent
    jc laurent
    6,351 Points

    added it to the parent view, doesn't seem to work?

    Posted November 22, 2016 3:42am by jc laurent
    jc laurent
    6,351 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    2 Answers

  • Jonathan Law
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jonathan Law
    iOS Development Techdegree Student 6,824 Points

    Don't understand what I am doing wrong here. Error says I am not adding all the constraints from the question?

    Posted September 26, 2016 11:28pm by Jonathan Law
    .a{fill-rule:evenodd;}techdegree
    Jonathan Law
    iOS Development Techdegree Student 6,824 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Mit Sengupta
    Mit Sengupta
    13,823 Points

    What am I doing wrong?

    Posted August 20, 2016 6:46am by Mit Sengupta
    Mit Sengupta
    13,823 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    2 Answers

  • Muhammad Ali
    Muhammad Ali
    4,386 Points

    Where am I going wrong?

    Posted August 16, 2016 6:24pm by Muhammad Ali
    Muhammad Ali
    4,386 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Tawanda Mudhliwa
    Tawanda Mudhliwa
    5,622 Points

    i am getting this error : Don't forget to add the constraints to the parent view!

    Posted July 18, 2016 1:47pm by Tawanda Mudhliwa
    Tawanda Mudhliwa
    5,622 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    0 Answers

  • Anthony Kim
    Anthony Kim
    4,010 Points

    i can check my sample view on the X-code. can i know my fault in my code?

    Posted June 21, 2016 1:31pm by Anthony Kim
    Anthony Kim
    4,010 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Sheng Wei
    Sheng Wei
    4,382 Points

    [Help!] What is wrong with my constraint?

    Posted June 7, 2016 2:10am by Sheng Wei
    Sheng Wei
    4,382 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Greg Kaleka
    Greg Kaleka
    39,021 Points

    Adding Constraints in Code

    Posted June 5, 2016 6:05pm by Greg Kaleka
    Greg Kaleka
    39,021 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    1 Answer

  • Sheng Wei
    Sheng Wei
    4,382 Points

    [Help!] Whats wrong with my constraints?

    Posted June 3, 2016 4:18pm by Sheng Wei
    Sheng Wei
    4,382 Points
    • iOS
    • Introduction to Auto Layout in iOS
    • Auto Layout in Code
    • Constraints in Code

    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