How To Use Constraints And Size Classes In xCode 8

  Рет қаралды 91,867

The Swift Guy

The Swift Guy

Күн бұрын

Пікірлер: 126
@bobbyhendrix3393
@bobbyhendrix3393 7 жыл бұрын
There is nothing better then finding a video explaining how to resolve your issue! Thank you, Thank you, Thank you !!!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Super glad that I was able to do that! You are welcome!:)
@mscitmadras
@mscitmadras 8 жыл бұрын
I have gone through a lot of tutorials for size classes, but your's was simple and amazing, easy to understand. Thank you so much....
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Thank you for saying that!:)
@ohcrazydiamond
@ohcrazydiamond 8 жыл бұрын
Another great tutorial, sometimes when the simulator is too big i just use command + 1 or 2 or 3 to resize it. Waiting for more!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Haha, actually didn't know that you could do that. Thanks for the tip;)
@ohcrazydiamond
@ohcrazydiamond 8 жыл бұрын
👍🏼👍🏼👍🏼
@ljubomirmasirevic7622
@ljubomirmasirevic7622 7 жыл бұрын
Or Simulator => Window => Scale ... than you can choose => 100% 75% 50% 25%
@M7Army
@M7Army 7 жыл бұрын
!thanks!!!
@teamspirit6400
@teamspirit6400 5 жыл бұрын
Hi! I love your tutorials! If I have a size problem, I got to
@sergeynewlayer
@sergeynewlayer 8 жыл бұрын
finally simple explanation, just started code for iso after android and its totally different
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Glad the video was able to help you:) Good luck!
@sergeynewlayer
@sergeynewlayer 8 жыл бұрын
I am just a student and still learning, in my app I need it to read current time, and keep counting/reading even when app is closed, if there is anything that can help me out in your videos let me know please. I just find out about your channel and gonna watch all of your videos.
@tunnelvisionfitness5777
@tunnelvisionfitness5777 7 жыл бұрын
Great tutorial. Do you have a video on Adaptive layouts? I am getting the hang of auto layouts but it still causes problems if I want to make the app available for the ipad as the images are way to small for the ipad screen.
@kimdavidj2
@kimdavidj2 7 жыл бұрын
Aren't the constraints units in points, not pixels? A point can be one or more pixels depending on a device's resolution. Correct me if I'm wrong.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are 100% correct, I hadn't caught up to that in this video yet:P
@coreyjones3948
@coreyjones3948 8 жыл бұрын
Thanks bro. I appreciate all the tutorials you're releasing they are very informative
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Glad to hear that!:)
@coreyjones3948
@coreyjones3948 8 жыл бұрын
The only bad part about your channel is waiting for more videos :(
@vbnet2008net
@vbnet2008net 7 жыл бұрын
Thank you very much, you are very good, I watch all your teaching clips. I learned swift language from your clip very well.
@pavsoor
@pavsoor 8 жыл бұрын
Thank You Thank You Thank You! Doing 2 Udemy courses and neither explained this as well as you have! Subscribed
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Awesome, thank you! Glad to hear that the video was able to help you:)
@udaypatel9708
@udaypatel9708 8 жыл бұрын
It is very help full to me....Thanks...!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Glad to hear that!
@spraveenk91
@spraveenk91 7 жыл бұрын
Thanks for this great tutorial. It really helped me a lot to understand about the new features.
@doloresipsum5437
@doloresipsum5437 6 жыл бұрын
I always go to this channel first when I want to know how to do something in Xcode
@TheRobertjoellewis
@TheRobertjoellewis 7 жыл бұрын
Just what I needed. Thanks!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Awesome!:)
@bhaumikjoshi9082
@bhaumikjoshi9082 7 жыл бұрын
Nice Video...Thank you.... but can u make more video based on this constraints concept with using more constraints so we can get deep and proper understand. Thanks again...
@richardgomez9093
@richardgomez9093 7 жыл бұрын
hi great tutorial i have a question i made an iphone app it looks great on all iphone but when i simulated on an ipad it get cut off in the ipad air i dont understand if the ipad is bigger why is it cutting it off i have alots of contrains i try many approaches but all fail hope you can help
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Probably because you have made an element expand with the size of the display. So when you enlarge the display, the object becomes enlarged as well. Because the iPad has different proportions than the iPhone, this would lead to the object being cut off.
@richardgomez9093
@richardgomez9093 7 жыл бұрын
how can i fix this im a bigginer just fallowing your tutorials thanks
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You will just have to experiment with how you place your constraints. Hard for me to tell which one to place
@antipov2
@antipov2 8 жыл бұрын
Thank you. This helps to understand constraints.
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Awesome!;)
@vajahatalee
@vajahatalee 7 жыл бұрын
very good man, it solved my issue finally.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Awesome;)
@charliemurphy9761
@charliemurphy9761 6 жыл бұрын
why for the pink long button did you choose the constraints that you did?
@sammypajammy2959
@sammypajammy2959 8 жыл бұрын
Dude you're a hero! Thank you!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
hah, glad you enjoyed it!
@displacementsmc
@displacementsmc 7 жыл бұрын
When I click Main.storyboard I get two windows. One is XCode and the other is UI builder which is for me kinda messy. How can I have them as one window combined?
@nimaetes6479
@nimaetes6479 7 жыл бұрын
you are my hero you learn me a lot of things thanks bro❤️😍❤️
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Super glad to hear that brother!:) ❤️
@mattesackboy2001
@mattesackboy2001 7 жыл бұрын
Thanks a lot ! Your lessons are top!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!;)
@anandsunku
@anandsunku 4 жыл бұрын
xcode storyboard suddenly pushes the control backwards and the options for bringing it in front is disabled. (Editor -> arrange -> Send to front .. is disabled ) .. how to enable or how to move the control to front in z order im using XCode Version 11.6 (11E708)
@edgarrodriguezbautista6345
@edgarrodriguezbautista6345 7 жыл бұрын
Friend could make a video of constraints (AutoLayouts) directly towards the elements inside a cell of a TableView, I would thank you very much you are good, continue like this.
@AW-gj4ji
@AW-gj4ji 7 жыл бұрын
Are there any reason why my app runs fine on iphones but when i run it on ipad and click on certain button it crashes?
@arsalanhashemi4469
@arsalanhashemi4469 5 жыл бұрын
Great Video dude... tnx
@ahmedredha3721
@ahmedredha3721 7 жыл бұрын
im facing trouble with the simulator and i can't seem to find how to adjust the size to the same size of my screen and thank you
@TheRizwanmughal
@TheRizwanmughal 8 жыл бұрын
Awesome Work!!
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Thank you!:)
@TheRizwanmughal
@TheRizwanmughal 7 жыл бұрын
u welcome!!
@kalybekovnurlan9
@kalybekovnurlan9 7 жыл бұрын
Can you please show more complex device friendly scale (constraints). For calculator for example. Thank you
@grippnault
@grippnault 7 жыл бұрын
I'm not sure if you take request, but I wanted to ask if you could do a tutorial on Reading and Writing To A File. (.txt)? I've been looking for one online but none that were helpful to me. I would greatly appreciate it, and I'm sure there are others who would benefit from it also.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Hi, thanks for the idea, will take a look at it!
@AlvarLagerlof
@AlvarLagerlof 7 жыл бұрын
Great! Now I get it!
@KhaledMubed
@KhaledMubed 7 жыл бұрын
فيديو جيد ، لقد ساعدني . شكرا لك Good video, it has helped me. Thank you
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that!
@omars.162
@omars.162 7 жыл бұрын
Earned yourself a sub! Great tutorial, keep it up! :D
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thanks;)
@Ahmadsalafi
@Ahmadsalafi 7 жыл бұрын
Great tutorial appreciate it homie! Keep going!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you, I will!:)
@Ahmadsalafi
@Ahmadsalafi 7 жыл бұрын
You earned yourself a like and a sub
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thank you!:)
@grippnault
@grippnault 7 жыл бұрын
Thanks. This was great!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that!
@fernando73820208
@fernando73820208 4 жыл бұрын
Thxs 4 the information!
@GustiRaditiaMadya
@GustiRaditiaMadya 7 жыл бұрын
Great video! Can you make video about stack views?
@rishabhyadav-ql5wl
@rishabhyadav-ql5wl 7 жыл бұрын
Great Video Sir . Thanks a lot :)
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!:)
@DarylNotDead
@DarylNotDead 8 жыл бұрын
Love these videos. 👍🏻
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Awesome!:)
@nomearod
@nomearod 7 жыл бұрын
Very nice. Thanks!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You're welcome;)
@Mr_BetaMax
@Mr_BetaMax 7 жыл бұрын
Thanks! That helped a lot
@krishdesai1097
@krishdesai1097 7 жыл бұрын
How do you do constraints for the corners?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You would simply place the objects that you want in the corner, and place the constraints that will make the objects appear like you want them to at launch. Just make sure that you dont place any part of the object outside the simulator, else you might get some errors at launch
@krishdesai1097
@krishdesai1097 7 жыл бұрын
The Swift Guy Thanks! I am new to Swift so I am following you videos to learn more!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Great to hear that!
@krishdesai1097
@krishdesai1097 7 жыл бұрын
:)
@krishdesai1097
@krishdesai1097 7 жыл бұрын
Can you make a video about constraints in depth because I added the constraints and it said there was an error so i added the constraints to the button beside it and then it worked.
@alyagoot94
@alyagoot94 8 жыл бұрын
thanks , good to know about this new option :D
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Yes, its a very useful feature:)
@mreng6
@mreng6 7 жыл бұрын
Thanks a lot , Good lesson
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome:)
@david_illichmann
@david_illichmann 8 жыл бұрын
simply great !😍
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Awesome!:)
@prision17
@prision17 7 жыл бұрын
Please help me!!! I can't do a simple interface my buttons just going crazy and the constraints doesn't work =(
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Try removing all constraints. Then start placing some new ones. The interface going crazy is a byproduct of 'strange' constraints. It happens often when starting out;)
@M7Army
@M7Army 7 жыл бұрын
9:33 not swift 8 xcode 8 !
@mustafaazyoksul1372
@mustafaazyoksul1372 6 жыл бұрын
3:00 on the lower right is "f**ktard" lol
@MusikRey
@MusikRey 7 жыл бұрын
Excelent, Thanks you much.!!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are very welcome!:)
@DanielOliveira-jd7xh
@DanielOliveira-jd7xh 7 жыл бұрын
Hey man! Thanks!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!
@王雷-m1l
@王雷-m1l 6 жыл бұрын
Good man!!
@michaelque3336
@michaelque3336 4 жыл бұрын
Videos starts at 7:00
@penguimTwo
@penguimTwo 4 жыл бұрын
thank you for rambling and turning a 3 minute video into a 14 minute one.
@AlbanBERNARD
@AlbanBERNARD 7 жыл бұрын
good video, thanks
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Glad to hear that - you are welcome!:)
@DocMacLovin
@DocMacLovin 7 жыл бұрын
In fact you are talking on points not pixels - a point can consist of 1, 4 or even 9 pixels on modern iOS devices.
@rajeshmaurya1849
@rajeshmaurya1849 7 жыл бұрын
Good One
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Thanks!;)
@tonyslark8389
@tonyslark8389 5 жыл бұрын
Thanks a lot))
@aryanmalesha6647
@aryanmalesha6647 7 жыл бұрын
Make a video on how to convert a sketch or adobe xd file to xcode
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Good idea!
@zerocel
@zerocel 7 жыл бұрын
thanks!
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
You are welcome!
@creda1500
@creda1500 7 жыл бұрын
thanks
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
you are welcome!
@ArslanGhaffar
@ArslanGhaffar 7 жыл бұрын
hey nice video,, at 9.31 swift 8 * Goodies,,
@hugosantos2748
@hugosantos2748 8 жыл бұрын
You keep saying pixels, but in fact you should say points not pixels!!! You should know the diference right? Thanks for the tutorial
@1TheSwiftGuy
@1TheSwiftGuy 8 жыл бұрын
Yes, you are probably right. It is named points and not pixels. But to be honest, I really don't care. Thanks for watching!:)
@doctorbower1989
@doctorbower1989 6 жыл бұрын
Please add views with much more complexity
@hamayunzeb8765
@hamayunzeb8765 7 жыл бұрын
Goooddd......
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
:)
@furkanayas3339
@furkanayas3339 4 жыл бұрын
🙏 bro, I expected some upper level stuff tho
@aaron___6014
@aaron___6014 6 жыл бұрын
You're always out of focus.
@IulianOnofrei
@IulianOnofrei 7 жыл бұрын
"And you click clear restrictions"? Really?! Stopped watching after this. They're constraints, not restrictions.
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
haha😂
@IulianOnofrei
@IulianOnofrei 7 жыл бұрын
Haha what?
@chloemartin2074
@chloemartin2074 7 жыл бұрын
i don't have the "Add missing constraints" in the Auto layout. I can't click on it. Someone knows why?
@1TheSwiftGuy
@1TheSwiftGuy 7 жыл бұрын
Make sure to select a view (button, textfield etc). Then the option should be available:)
@chloemartin2074
@chloemartin2074 7 жыл бұрын
The Swift Guy thanks
How To Create Custom Tableview Cells In Xcode 8 (Swift 3.0)
10:55
The Swift Guy
Рет қаралды 93 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 34 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 25 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 19 МЛН
How To Create A To Do List App In Xcode 8 (Swift 3.0)
14:58
The Swift Guy
Рет қаралды 91 М.
Beginner Auto Layout & Constraints - Swift 4.2 - Xcode 10
27:10
Sean Allen
Рет қаралды 82 М.
How To Submit An App To App Store With xCode 8
16:16
The Swift Guy
Рет қаралды 349 М.
Working with constraints in xCode
7:55
Kristofer codes
Рет қаралды 2,4 М.
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 81 М.
How To Use Multiple View Controllers In Xcode 8 (Swift 3.0)
15:33
The Swift Guy
Рет қаралды 107 М.
How To Build Responsive User Interfaces with SwiftUI
18:38
CodeWithChris
Рет қаралды 27 М.
How To Use Core Data In Xcode 8 (Swift 3.0)
14:05
The Swift Guy
Рет қаралды 70 М.
Constraints/Autolayout! (Xcode)
9:22
Jared Davidson
Рет қаралды 70 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 34 МЛН