Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAurelian Spodarec
7,369 PointsMy iPad or iPhone is size 600x600 xcode
So i start app, iphone i4 and i6 and the screen size , in mainstoryboard is allways 600 when i start . How can i make it so it goes all the time on iPhone or iPad size?
2 Answers
Gregg Mojica
11,506 PointsIn your storyboard, click the view (start with the initial view) and tab the first button from the left (looks like a little page icon). Then scroll down and uncheck "Use Size Classes."
Gregg Mojica
11,506 PointsDisable Auto Layout's Class sizes
Aurelian Spodarec
7,369 Pointswhere and how do i do that? im new to xcode and im slowely getting used to it same as on frameworks .
Aurelian Spodarec
7,369 Pointsi got still a problem, when i put it on the center , in symulator is not on center
Gregg Mojica
11,506 PointsYou will need to use AutoLayout to correct those problems. Treehouse covers that in the Swift Weather App Course
Aurelian Spodarec
7,369 Pointsi put it on center and in app symulator is like 10 px on left or more
Aurelian Spodarec
7,369 Pointsim doing objective-c more intrested than in swift , swift later one
Gregg Mojica
11,506 PointsCan you show a screenshot? But you still should use AutoLayout to handle those issues.
Gregg Mojica
11,506 PointsOk, understandable, but you still need to use AutoLayout. AutoLayout is not a programming language that you can only use in swift - it is a technique for centering and arranging items in a scoreboard or xib. See this video.
Also, open a new thread to ask this question.
Aurelian Spodarec
7,369 Pointsheres the image http://scr.hu/2icp/q9bxf
Aurelian Spodarec
7,369 PointsGregg Mojica
11,506 PointsYou need to use AutoLayout.
Aurelian Spodarec
7,369 Pointsi do , i tried every combinations and sometimes works sometimes don't
Gregg Mojica
11,506 PointsWell, auto-lyout is rather tricky sometimes. It's very possible that you've made a few mistakes with your constraints. Also, you could always try cleaning your project (Command Shift K)
Aurelian Spodarec
7,369 Pointskk thank you. ill try it :)
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 Pointsthank you , i hope it helped not sure .
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 Pointsit did thhank you :)
Gregg Mojica
11,506 PointsGregg Mojica
11,506 PointsGlad to help out!