diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.pbxproj b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.pbxproj new file mode 100644 index 0000000..d663e74 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.pbxproj @@ -0,0 +1,365 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + BF518AD1203FF0AC001476B5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF518AD0203FF0AC001476B5 /* AppDelegate.swift */; }; + BF518AD3203FF0AC001476B5 /* FrameBoundsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF518AD2203FF0AC001476B5 /* FrameBoundsViewController.swift */; }; + BF518AD6203FF0AC001476B5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BF518AD4203FF0AC001476B5 /* Main.storyboard */; }; + BF518AD8203FF0AC001476B5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BF518AD7203FF0AC001476B5 /* Assets.xcassets */; }; + BF518ADB203FF0AC001476B5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BF518AD9203FF0AC001476B5 /* LaunchScreen.storyboard */; }; + BF8CAA09204E29A10044C3C9 /* NSLayoutConstraintsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF8CAA08204E29A10044C3C9 /* NSLayoutConstraintsViewController.swift */; }; + BF8CAA0B204E2EA50044C3C9 /* NSLayoutAnchorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF8CAA0A204E2EA50044C3C9 /* NSLayoutAnchorViewController.swift */; }; + BF8CAA0D204E326D0044C3C9 /* StackViewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF8CAA0C204E326D0044C3C9 /* StackViewViewController.swift */; }; + BFA3463A2048EA2B00D45997 /* SizeClassViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA346392048EA2B00D45997 /* SizeClassViewController.swift */; }; + BFA3463C2048F2AB00D45997 /* TableViewViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA3463B2048F2AB00D45997 /* TableViewViewController.swift */; }; + BFA3463F2048F3B500D45997 /* TableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFA3463E2048F3B500D45997 /* TableViewCell.swift */; }; + BFD90B9B2045418A00A1E6FE /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFD90B9A2045418A00A1E6FE /* LoginViewController.swift */; }; + BFF8F5D6204692A3007CB625 /* ScrollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFF8F5D5204692A3007CB625 /* ScrollViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + BF518ACD203FF0AC001476B5 /* 3.AutoLayout.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = 3.AutoLayout.app; sourceTree = BUILT_PRODUCTS_DIR; }; + BF518AD0203FF0AC001476B5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + BF518AD2203FF0AC001476B5 /* FrameBoundsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FrameBoundsViewController.swift; sourceTree = ""; }; + BF518AD5203FF0AC001476B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + BF518AD7203FF0AC001476B5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + BF518ADA203FF0AC001476B5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + BF518ADC203FF0AC001476B5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + BF8CAA08204E29A10044C3C9 /* NSLayoutConstraintsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSLayoutConstraintsViewController.swift; sourceTree = ""; }; + BF8CAA0A204E2EA50044C3C9 /* NSLayoutAnchorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSLayoutAnchorViewController.swift; sourceTree = ""; }; + BF8CAA0C204E326D0044C3C9 /* StackViewViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StackViewViewController.swift; sourceTree = ""; }; + BFA346392048EA2B00D45997 /* SizeClassViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SizeClassViewController.swift; sourceTree = ""; }; + BFA3463B2048F2AB00D45997 /* TableViewViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewViewController.swift; sourceTree = ""; }; + BFA3463E2048F3B500D45997 /* TableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TableViewCell.swift; sourceTree = ""; }; + BFD90B9A2045418A00A1E6FE /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = ""; }; + BFF8F5D5204692A3007CB625 /* ScrollViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScrollViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BF518ACA203FF0AC001476B5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BF518AC4203FF0AB001476B5 = { + isa = PBXGroup; + children = ( + BF518ACF203FF0AC001476B5 /* 3.AutoLayout */, + BF518ACE203FF0AC001476B5 /* Products */, + ); + sourceTree = ""; + }; + BF518ACE203FF0AC001476B5 /* Products */ = { + isa = PBXGroup; + children = ( + BF518ACD203FF0AC001476B5 /* 3.AutoLayout.app */, + ); + name = Products; + sourceTree = ""; + }; + BF518ACF203FF0AC001476B5 /* 3.AutoLayout */ = { + isa = PBXGroup; + children = ( + BF518ADC203FF0AC001476B5 /* Info.plist */, + BF518AD0203FF0AC001476B5 /* AppDelegate.swift */, + BF518AD2203FF0AC001476B5 /* FrameBoundsViewController.swift */, + BFD90B9A2045418A00A1E6FE /* LoginViewController.swift */, + BF8CAA0A204E2EA50044C3C9 /* NSLayoutAnchorViewController.swift */, + BF8CAA08204E29A10044C3C9 /* NSLayoutConstraintsViewController.swift */, + BFF8F5D5204692A3007CB625 /* ScrollViewController.swift */, + BFA346392048EA2B00D45997 /* SizeClassViewController.swift */, + BF8CAA0C204E326D0044C3C9 /* StackViewViewController.swift */, + BF518AD7203FF0AC001476B5 /* Assets.xcassets */, + BF518AD9203FF0AC001476B5 /* LaunchScreen.storyboard */, + BF518AD4203FF0AC001476B5 /* Main.storyboard */, + BFA3463D2048F39C00D45997 /* TableView */, + ); + path = 3.AutoLayout; + sourceTree = ""; + }; + BFA3463D2048F39C00D45997 /* TableView */ = { + isa = PBXGroup; + children = ( + BFA3463B2048F2AB00D45997 /* TableViewViewController.swift */, + BFA3463E2048F3B500D45997 /* TableViewCell.swift */, + ); + path = TableView; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + BF518ACC203FF0AC001476B5 /* 3.AutoLayout */ = { + isa = PBXNativeTarget; + buildConfigurationList = BF518ADF203FF0AC001476B5 /* Build configuration list for PBXNativeTarget "3.AutoLayout" */; + buildPhases = ( + BF518AC9203FF0AC001476B5 /* Sources */, + BF518ACA203FF0AC001476B5 /* Frameworks */, + BF518ACB203FF0AC001476B5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = 3.AutoLayout; + productName = 3.AutoLayout; + productReference = BF518ACD203FF0AC001476B5 /* 3.AutoLayout.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BF518AC5203FF0AC001476B5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + ORGANIZATIONNAME = DaoLQ; + TargetAttributes = { + BF518ACC203FF0AC001476B5 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = BF518AC8203FF0AC001476B5 /* Build configuration list for PBXProject "3.AutoLayout" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = BF518AC4203FF0AB001476B5; + productRefGroup = BF518ACE203FF0AC001476B5 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BF518ACC203FF0AC001476B5 /* 3.AutoLayout */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BF518ACB203FF0AC001476B5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BF518ADB203FF0AC001476B5 /* LaunchScreen.storyboard in Resources */, + BF518AD8203FF0AC001476B5 /* Assets.xcassets in Resources */, + BF518AD6203FF0AC001476B5 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + BF518AC9203FF0AC001476B5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BFD90B9B2045418A00A1E6FE /* LoginViewController.swift in Sources */, + BF518AD3203FF0AC001476B5 /* FrameBoundsViewController.swift in Sources */, + BF8CAA0D204E326D0044C3C9 /* StackViewViewController.swift in Sources */, + BF518AD1203FF0AC001476B5 /* AppDelegate.swift in Sources */, + BF8CAA09204E29A10044C3C9 /* NSLayoutConstraintsViewController.swift in Sources */, + BFF8F5D6204692A3007CB625 /* ScrollViewController.swift in Sources */, + BF8CAA0B204E2EA50044C3C9 /* NSLayoutAnchorViewController.swift in Sources */, + BFA3463C2048F2AB00D45997 /* TableViewViewController.swift in Sources */, + BFA3463F2048F3B500D45997 /* TableViewCell.swift in Sources */, + BFA3463A2048EA2B00D45997 /* SizeClassViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + BF518AD4203FF0AC001476B5 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BF518AD5203FF0AC001476B5 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + BF518AD9203FF0AC001476B5 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BF518ADA203FF0AC001476B5 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + BF518ADD203FF0AC001476B5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + BF518ADE203FF0AC001476B5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + BF518AE0203FF0AC001476B5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = 3.AutoLayout/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.fstyle.--AutoLayout"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BF518AE1203FF0AC001476B5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = 3.AutoLayout/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.fstyle.--AutoLayout"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BF518AC8203FF0AC001476B5 /* Build configuration list for PBXProject "3.AutoLayout" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BF518ADD203FF0AC001476B5 /* Debug */, + BF518ADE203FF0AC001476B5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BF518ADF203FF0AC001476B5 /* Build configuration list for PBXNativeTarget "3.AutoLayout" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BF518AE0203FF0AC001476B5 /* Debug */, + BF518AE1203FF0AC001476B5 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BF518AC5203FF0AC001476B5 /* Project object */; +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..cc24eb3 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..f00fef9 Binary files /dev/null and b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/3.AutoLayout.xcscheme b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/3.AutoLayout.xcscheme new file mode 100644 index 0000000..408f89f --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/3.AutoLayout.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..dbd3013 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + 3.AutoLayout.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + BF518ACC203FF0AC001476B5 + + primary + + + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/AppDelegate.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/AppDelegate.swift new file mode 100644 index 0000000..5114acc --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// 3.AutoLayout +// +// Created by DaoLQ on 2/23/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/AppIcon.appiconset/Contents.json b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/Contents.json b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/Contents.json b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/Contents.json new file mode 100644 index 0000000..fdbbef8 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "image1.jpeg", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/image1.jpeg b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/image1.jpeg new file mode 100644 index 0000000..00c3610 Binary files /dev/null and b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image1.imageset/image1.jpeg differ diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/Contents.json b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/Contents.json new file mode 100644 index 0000000..b7f7ccd --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "image2.jpeg", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/image2.jpeg b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/image2.jpeg new file mode 100644 index 0000000..2e55015 Binary files /dev/null and b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image2.imageset/image2.jpeg differ diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/Contents.json b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/Contents.json new file mode 100644 index 0000000..a196b4e --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "image3.jpeg", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/image3.jpeg b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/image3.jpeg new file mode 100644 index 0000000..8241cc2 Binary files /dev/null and b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Assets.xcassets/image3.imageset/image3.jpeg differ diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/LaunchScreen.storyboard b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/Main.storyboard b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/Main.storyboard new file mode 100644 index 0000000..c339351 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Base.lproj/Main.storyboard @@ -0,0 +1,472 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/FrameBoundsViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/FrameBoundsViewController.swift new file mode 100644 index 0000000..d0da392 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/FrameBoundsViewController.swift @@ -0,0 +1,41 @@ +// +// ViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 2/23/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class FrameBoundsViewController: UIViewController { + + @IBOutlet weak var viewGreen: UIView! + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + @IBAction func sliderFrameXValueChange(_ sender: Any) { + if let sliderBar = sender as? UISlider { + viewGreen.frame.origin.x = CGFloat(sliderBar.value) + } + } + + @IBAction func sliderFrameYValueChange(_ sender: Any) { + if let sliderBar = sender as? UISlider { + viewGreen.frame.origin.y = CGFloat(sliderBar.value) + } } + + @IBAction func sliderBoundValueXChange(_ sender: Any) { + if let sliderBar = sender as? UISlider { + viewGreen.bounds.origin.x = CGFloat(sliderBar.value) + } } + + @IBAction func sliderBoundValueYChange(_ sender: Any) { + if let sliderBar = sender as? UISlider { + viewGreen.bounds.origin.x = CGFloat(sliderBar.value) + } + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/Info.plist b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/LoginViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/LoginViewController.swift new file mode 100644 index 0000000..7769755 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/LoginViewController.swift @@ -0,0 +1,26 @@ +// +// LoginViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 2/27/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class LoginViewController: UIViewController { + + @IBOutlet weak var btnLogin: UIButton! + @IBOutlet weak var btnRegister: UIButton! + + override func viewDidLoad() { + super.viewDidLoad() + btnLogin.layer.cornerRadius = 0.2*btnLogin.bounds.size.height + btnLogin.layer.borderWidth = 1.0 + btnLogin.layer.borderColor = UIColor.white.cgColor + + btnRegister.layer.cornerRadius = 0.2*btnLogin.bounds.size.height + btnRegister.layer.borderWidth = 1.0 + btnRegister.layer.borderColor = UIColor.white.cgColor + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutAnchorViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutAnchorViewController.swift new file mode 100644 index 0000000..1f753e7 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutAnchorViewController.swift @@ -0,0 +1,27 @@ +// +// NSLayoutAnchorViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/6/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class NSLayoutAnchorViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + let redView = UIView() + redView.backgroundColor = #colorLiteral(red: 0.8285624694, green: 0.2124449641, blue: 0.04311446535, alpha: 1) + view.addSubview(redView) + + redView.topAnchor.constraint(equalTo: view.topAnchor, constant: 20).isActive = true + redView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 10).isActive = true + redView.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 1/3).isActive = true + redView.heightAnchor.constraint(equalTo: view.heightAnchor, multiplier: 1/2).isActive = true + + redView.translatesAutoresizingMaskIntoConstraints = false + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutConstraintsViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutConstraintsViewController.swift new file mode 100644 index 0000000..9dd075a --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/NSLayoutConstraintsViewController.swift @@ -0,0 +1,28 @@ +// +// NSLayoutConstraints.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/6/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class NSLayoutConstraintsViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + let redView = UIView() + redView.backgroundColor = UIColor.red + view.addSubview(redView) + + let top = NSLayoutConstraint(item: redView, attribute: .top, relatedBy: .equal, toItem: view, attribute: .top, multiplier: 1, constant: 20) + let left = NSLayoutConstraint(item: redView, attribute: .left, relatedBy: .equal, toItem: view, attribute: .left, multiplier: 1, constant: 20) + let width = NSLayoutConstraint(item: redView, attribute: .width, relatedBy: .equal, toItem: view, attribute: .width, multiplier: 1, constant: -40) + let height = NSLayoutConstraint(item: redView, attribute: .height, relatedBy: .equal, toItem: view, attribute: .height, multiplier: 1/2, constant: 0) + + redView.autoresizesSubviews = false + redView.translatesAutoresizingMaskIntoConstraints = false + view.addConstraints([top,left,width,height]) + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/ScrollViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/ScrollViewController.swift new file mode 100644 index 0000000..d01b949 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/ScrollViewController.swift @@ -0,0 +1,13 @@ +// +// ScrollViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 2/28/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class ScrollViewController: UIViewController { + +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/SizeClassViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/SizeClassViewController.swift new file mode 100644 index 0000000..e2b8a85 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/SizeClassViewController.swift @@ -0,0 +1,16 @@ +// +// SizeClassViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/2/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class SizeClassViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/StackViewViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/StackViewViewController.swift new file mode 100644 index 0000000..e4d502c --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/StackViewViewController.swift @@ -0,0 +1,65 @@ +// +// StackViewViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/6/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class StackViewViewController: UIViewController { + + @IBOutlet weak var image1: UIImageView! + @IBOutlet weak var image2: UIImageView! + @IBOutlet weak var image3: UIImageView! + @IBOutlet weak var button1: UIButton! + @IBOutlet weak var button2: UIButton! + @IBOutlet weak var button3: UIButton! + + override func viewDidLoad() { + super.viewDidLoad() + } + + @IBAction func onButton1Clicked(sender: AnyObject) { + if image1.isHidden == false { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image1.isHidden = true + self.button1.setTitle("Show image 1", for: .normal) + }) + } else { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image1.isHidden = false + self.button1.setTitle("Hide image 1", for: .normal) + }) + } + } + + @IBAction func onButton2Clicked(sender: AnyObject) { + if image2.isHidden == false { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image2.isHidden = true + self.button2.setTitle("Show image 2", for: .normal) + }) + } else { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image2.isHidden = false + self.button2.setTitle("Hide image 2", for: .normal) + }) + } + } + + @IBAction func onButton3Clicked(sender: AnyObject) { + if image3.isHidden == false { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image3.isHidden = true + self.button3.setTitle("Show image 3", for: .normal) + }) + } else { + UIView.animate(withDuration: 0.3, animations: { () -> Void in + self.image3.isHidden = false + self.button3.setTitle("Hide image 3", for: .normal) + }) + } + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewCell.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewCell.swift new file mode 100644 index 0000000..da99edc --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewCell.swift @@ -0,0 +1,18 @@ +// +// TableViewCell.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/2/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class TableViewCell: UITableViewCell { + + @IBOutlet weak var lblText: UILabel! + + override func awakeFromNib() { + super.awakeFromNib() + } +} diff --git a/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewViewController.swift b/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewViewController.swift new file mode 100644 index 0000000..6070658 --- /dev/null +++ b/3.AutoLayout/3.AutoLayout/3.AutoLayout/TableView/TableViewViewController.swift @@ -0,0 +1,38 @@ +// +// TableViewViewController.swift +// 3.AutoLayout +// +// Created by DaoLQ on 3/2/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class TableViewViewController: UIViewController { + + @IBOutlet weak var tableView: UITableView! + + var arrText = ["Test001aaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbqqqqqqqqqqqqqqqqqqqqqqqqqaaaaa", "Test 002", "Test 003"] + + override func viewDidLoad() { + super.viewDidLoad() + tableView.delegate = self + tableView.dataSource = self + + tableView.estimatedRowHeight = 100 + tableView.rowHeight = UITableViewAutomaticDimension + } +} + +extension TableViewViewController: UITableViewDelegate, UITableViewDataSource { + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return arrText.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "TableViewCell") as! TableViewCell + cell.lblText.text = arrText[indexPath.row] + return cell + } +} diff --git a/README.md b/README.md index 76205d9..2f5b8b8 100644 --- a/README.md +++ b/README.md @@ -1 +1,23 @@ # IOSTraining +## Lession 3: +**1. Brief of AutoLayouts, AutoLayout with constraint** + + Understanding Auto Layout + + Neo (trailing, leading, top, bottom) + + equals (with, heigh) + + priority, multiplier + +**2. Auto Layout Without Constraints** + + Stack View + +**3. AutoLayout SizeClass, ScrollView, TableView** + + Dynamic tableview with autolayout + +**4. AutoLayout with NSLayoutContrains, NSLayoutAnchor** + +### Excercise: +- Let's do and push code to GitHub: [AutoLayout_Excercise_01.pdf](https://github.com/daolq3012/IOSTraining/files/1757839/AutoLayout_Excercise_01.pdf) + +### Ref: ++ [Developer Apple - Auto Layout Guide](https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/index.html#//apple_ref/doc/uid/TP40010853-CH7-SW1) ++ [Lập trình iOS - Autolayout - Khoa Pham](https://www.youtube.com/playlist?list=PLzrVYRai0riQcRhyUNP8Qczor3iCOc4Rh) +