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

Показать описание
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)")
}
}
}
}
Комментарии