Auto Layout Tutorial in Xcode with Swift for iOS 10 | iOS Development Tutorial

preview_player
Показать описание

Have you ever wanted to build universal apps meaning you build 1 app UI that can work on any screen size? That's what Auto Layout in iOS will help you.

In this Auto Layout tutorial, you'll learn:
+ What's Auto Layout
+ How to add unambiguous constraints
+ Different kinds of constraints in Auto Layout.
+ Priorities in Auto Layout Constraints
+ How to programmatically create auto layout constraints
+ What's Auto Layout Content Hugging Priority vs. Content Compression Resistence Priority
+ Stack View in iOS
+ How to create and use UIStackView with Auto Layout

First off, let's download the starter project Duc prepared for you. Just simply enter your name and email on the page to get:
+ the starter and complete projects of this episode
+ Duc's step-by-step video tutorial
+ Duc's new training on How to Build Nike E-commerce Store WITHOUT Losing Your Shirt

It's all awesome iOS development training for you, for FREE!

*********
ABOUT CODE MASTERY
*********
Code Mastery is hosted by Duc Tran, founder of Developers Academy.

This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

*********
MEET DUC TRAN
*********

Duc Tran is founder of Developers Academy, one of the world's leading iOS, Android and Web development trainers.

More than 2,000,000 developers have studied his video trainings; 100,000 developers see his posts each month. Each year, Duc has helped 20,000 plus developers graduate from his online courses or video series.

*********
FREE TRAININGS IN IOS DEVELOPMENT
*********

*********
SOURCE CODE IN THIS COURSE
*********

class NetworkProcessor
{

let url: URL

init(url: URL)
{
}

typealias JSONDictionaryHandler = (([String : Any]?) - Void)

func downloadJSONFromURL(_ completion: @escaping JSONDictionaryHandler)
{

if error == nil {

if let httpResponse = response as? HTTPURLResponse {
case 200:
// successful response
if let data = data {
do {

completion(jsonDictionary as? [String : Any])

} catch let error as NSError {
}

}

default:
}
}

} else {
print("Error: \(error?.localizedDescription)")
}
}

}
}

Рекомендации по теме
Комментарии
Автор

Good job Duc Tran and thank you so much. I'm glad that finally I've found this video !! While watching this, I felt like unlocking a treasure!!

abhilashreddy
Автор

You are doing a very good job Duc, Keep it up ! :)

rizwanahmed
Автор

Thanks Duc, i am new with xcode/swift and after watching your video, i can progress with my project nicely. You guy rock!

laisiulong
Автор

I agree with Nadeem. You really did a good job explaining Auto Layout and Constraints. Thanks so much!

AoF
Автор

Great tutorial dude. auto layout is a lot clearer to me know. quality of vid is great also. nice job!

Knowideer
Автор

Great explanation, it helped lot Thanks Duc

pauldinakaran
Автор

Thank you so much broo, , I have watched a lot of courses about auto layout but nobody explained it as you did

nadeemkh
Автор

yes great explanation ..very easy to understand

Haza
Автор

Now I understand and feel Auto Layout very clearly. I love your teaching style :)

md.shahedmamun
Автор

One of the Best Tutorials on Auto Layout

unboxingtechnology
Автор

Everything is blue, everything is happy! 😄👌

andriyzherebyatyev
Автор

That was an excellent explanation, mate! I've been struggling to understand that. Cheers!

rrafaelpaz
Автор

Great tutorial about auto layout. Thank you very much

buiduyhien
Автор

You are a good guy ! You explain great!
Your accent is cute :D

hunTR
Автор

thank you so much for your video. Yet, I wonder if this will work for landscape view.

minnthukyaw
Автор

very well explained !
what happen if we take constraints to margins in "add new constraints"

HirenMistry
Автор

OMG great work !!!! auto layout make me confused for quite some time :D

tonyzchan
Автор

THANK YOU SO MUCH!!!! THIS IS THE BEST VIDEO

adamel-kadi
Автор

Please upload a video to show How to use Aspect Ratio when doing AutoLayout
Thanks

infcool
Автор

hey Duc, im thinking about buying socialize your apps 2, but I wanted to ask, is it in swift 3 or swift 2 ? thanks in advance

slrmclaren
welcome to shbcf.ru