From 494219550a982914927eb23a7e9fa51aeb3e453d Mon Sep 17 00:00:00 2001 From: DaoLQ Date: Fri, 9 Mar 2018 09:13:47 +0700 Subject: [PATCH] 5.UITableView --- .../5.TableView.xcodeproj/project.pbxproj | 325 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../UserInterfaceState.xcuserstate | Bin 0 -> 9792 bytes .../xcschemes/5.TableView.xcscheme | 91 +++++ .../xcschemes/xcschememanagement.plist | 22 ++ 5.TableView/5.TableView/AppDelegate.swift | 46 +++ .../AppIcon.appiconset/Contents.json | 93 +++++ .../Base.lproj/LaunchScreen.storyboard | 25 ++ .../5.TableView/Base.lproj/Main.storyboard | 50 +++ 5.TableView/5.TableView/Info.plist | 45 +++ 5.TableView/5.TableView/ViewController.swift | 25 ++ README.md | 25 ++ 12 files changed, 754 insertions(+) create mode 100644 5.TableView/5.TableView.xcodeproj/project.pbxproj create mode 100644 5.TableView/5.TableView.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 5.TableView/5.TableView.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate create mode 100644 5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/5.TableView.xcscheme create mode 100644 5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 5.TableView/5.TableView/AppDelegate.swift create mode 100644 5.TableView/5.TableView/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 5.TableView/5.TableView/Base.lproj/LaunchScreen.storyboard create mode 100644 5.TableView/5.TableView/Base.lproj/Main.storyboard create mode 100644 5.TableView/5.TableView/Info.plist create mode 100644 5.TableView/5.TableView/ViewController.swift diff --git a/5.TableView/5.TableView.xcodeproj/project.pbxproj b/5.TableView/5.TableView.xcodeproj/project.pbxproj new file mode 100644 index 0000000..7b0c7a2 --- /dev/null +++ b/5.TableView/5.TableView.xcodeproj/project.pbxproj @@ -0,0 +1,325 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + BF808B45204F91F000BF4AB8 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF808B44204F91F000BF4AB8 /* AppDelegate.swift */; }; + BF808B47204F91F000BF4AB8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF808B46204F91F000BF4AB8 /* ViewController.swift */; }; + BF808B4A204F91F000BF4AB8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BF808B48204F91F000BF4AB8 /* Main.storyboard */; }; + BF808B4C204F91F000BF4AB8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BF808B4B204F91F000BF4AB8 /* Assets.xcassets */; }; + BF808B4F204F91F000BF4AB8 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BF808B4D204F91F000BF4AB8 /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + BF808B41204F91F000BF4AB8 /* 5.TableView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = 5.TableView.app; sourceTree = BUILT_PRODUCTS_DIR; }; + BF808B44204F91F000BF4AB8 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + BF808B46204F91F000BF4AB8 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + BF808B49204F91F000BF4AB8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + BF808B4B204F91F000BF4AB8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + BF808B4E204F91F000BF4AB8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + BF808B50204F91F000BF4AB8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BF808B3E204F91F000BF4AB8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BF808B38204F91F000BF4AB8 = { + isa = PBXGroup; + children = ( + BF808B43204F91F000BF4AB8 /* 5.TableView */, + BF808B42204F91F000BF4AB8 /* Products */, + ); + sourceTree = ""; + }; + BF808B42204F91F000BF4AB8 /* Products */ = { + isa = PBXGroup; + children = ( + BF808B41204F91F000BF4AB8 /* 5.TableView.app */, + ); + name = Products; + sourceTree = ""; + }; + BF808B43204F91F000BF4AB8 /* 5.TableView */ = { + isa = PBXGroup; + children = ( + BF808B44204F91F000BF4AB8 /* AppDelegate.swift */, + BF808B46204F91F000BF4AB8 /* ViewController.swift */, + BF808B48204F91F000BF4AB8 /* Main.storyboard */, + BF808B4B204F91F000BF4AB8 /* Assets.xcassets */, + BF808B4D204F91F000BF4AB8 /* LaunchScreen.storyboard */, + BF808B50204F91F000BF4AB8 /* Info.plist */, + ); + path = 5.TableView; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + BF808B40204F91F000BF4AB8 /* 5.TableView */ = { + isa = PBXNativeTarget; + buildConfigurationList = BF808B53204F91F000BF4AB8 /* Build configuration list for PBXNativeTarget "5.TableView" */; + buildPhases = ( + BF808B3D204F91F000BF4AB8 /* Sources */, + BF808B3E204F91F000BF4AB8 /* Frameworks */, + BF808B3F204F91F000BF4AB8 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = 5.TableView; + productName = 5.TableView; + productReference = BF808B41204F91F000BF4AB8 /* 5.TableView.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BF808B39204F91F000BF4AB8 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 0920; + ORGANIZATIONNAME = DaoLQ; + TargetAttributes = { + BF808B40204F91F000BF4AB8 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = BF808B3C204F91F000BF4AB8 /* Build configuration list for PBXProject "5.TableView" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = BF808B38204F91F000BF4AB8; + productRefGroup = BF808B42204F91F000BF4AB8 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BF808B40204F91F000BF4AB8 /* 5.TableView */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BF808B3F204F91F000BF4AB8 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BF808B4F204F91F000BF4AB8 /* LaunchScreen.storyboard in Resources */, + BF808B4C204F91F000BF4AB8 /* Assets.xcassets in Resources */, + BF808B4A204F91F000BF4AB8 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + BF808B3D204F91F000BF4AB8 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BF808B47204F91F000BF4AB8 /* ViewController.swift in Sources */, + BF808B45204F91F000BF4AB8 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + BF808B48204F91F000BF4AB8 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BF808B49204F91F000BF4AB8 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + BF808B4D204F91F000BF4AB8 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + BF808B4E204F91F000BF4AB8 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + BF808B51204F91F000BF4AB8 /* 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; + }; + BF808B52204F91F000BF4AB8 /* 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; + }; + BF808B54204F91F000BF4AB8 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = 5.TableView/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.fstyle.--TableView"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + BF808B55204F91F000BF4AB8 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = 5.TableView/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.fstyle.--TableView"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BF808B3C204F91F000BF4AB8 /* Build configuration list for PBXProject "5.TableView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BF808B51204F91F000BF4AB8 /* Debug */, + BF808B52204F91F000BF4AB8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BF808B53204F91F000BF4AB8 /* Build configuration list for PBXNativeTarget "5.TableView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BF808B54204F91F000BF4AB8 /* Debug */, + BF808B55204F91F000BF4AB8 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BF808B39204F91F000BF4AB8 /* Project object */; +} diff --git a/5.TableView/5.TableView.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/5.TableView/5.TableView.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..9c53c89 --- /dev/null +++ b/5.TableView/5.TableView.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/5.TableView/5.TableView.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate b/5.TableView/5.TableView.xcodeproj/project.xcworkspace/xcuserdata/daolq.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000000000000000000000000000000000000..873e95dd8e75a1c2603276e46a0ecb187c56012c GIT binary patch literal 9792 zcmcgxd0bOh_P_Tgf$T4c*%Lwq5nBRb3*bs1p`r*%01+1q@Wj-R&?JDATCW|oF14%O z7X_?Ktz%njt+m$fb+olsZEIV*PM7J_?)!ACzw`14km~f;-yieCk4fHL&OPVcbG~PJ zP3=B!C~UKxL>LhyKtd!!apWxdtv78=`yxC9Gac#2{teC!f;J$IM6-< z;Z>V*x)13Vnn=MxUTh(Ld1V=o|Dc`Uzu9umB6O2*+U+PQWA3O0334Y{JPn4UfSY z*p3TuAuhqC*oj?u8lHh0@EklBFT|}lfZOrqIEb&tf59v8O1uhRgIDA0@b&m+yaC^d z@5P((HvCuo2!0YD#82VF_y~RpzmDI)Z{zpycldk!1O5^Jgn!1r;D6y?iGT=+h{#9+ z89~(KA~K4kkW@07TtYHPHW^PQkcngxnM{hwR5FcJkm+P5nN1qV9MVi$2ul`{R^lV= zq?24hddM|oHCaQ}l6B-paud0k^pnlxKC*>uCELh$azEKYc993kBV-TRPo5wL$gAWy zIYCa6*U0PS4RVUSN!}uFlhfoK@-F$1{DYh!Uy<+0&*YcdRDXxhcLGU}6v>brF=)iB zN_XaBwmZ}S-vb6vm)h*}ghG8tfs~X`K_60~1S+H}sJ&5@T2SW5Ey=N!S#xp=ZPvU3 zTduXFAkStk&CSVn+HH1QfupQZHL~34niU8x4z+ulS!bZRqmA{4qX%n{1*LC8TBJjI zWI#q_LS~diMKq4aQ!$lLDV0(AHk6DmLZeU$EK;B}G=?gulB(#{u!ztCI+y0m=T7nZ zTLN8WK~EdosJaLSs)8+SkZl<}y~fj28t{jM0iO>ny-_u3IBPMJjRj@7`K3;~%UY6K z=CJ1F6ct$ub4%=2yEEIKU6kW;78QUB(uWh^k8iAWSF@pTAn0lGvF@-Z%sM?`Pov5L zOC8N&aHb2h)2PZgpV$z$wSMpA9c+0E=+3*)%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cg?S3O_7 zK;5KnQ7=??sk_xZ>ZR&s>gDRcs8_15QLj;NQXfzsR)3)WPNUL{(oED$)l_L_YTTN7 zO@n5xX1?Zj&2i0pnh!M}X+G6_rukg+vleOPTBTN{9ia_sd$h~7tF$+3@7CU{-K6c) zZr1M9?$SP_-L2iD-K+gjm!K=wd3Bw-Ze5S=Djn5bt-DpXQMXyQMYm0NzizMYN!?Sr zXLQf$j_6+2y`pSyWe^&WkvewqGi z{R;gm{cZYQ{SN(J{XYGE{Q>@#jQZZU2%-f!G(++*Bp z+-KZxJYam&_=PFalwm3|O)yO|IZUM{m&s$g%+zICVOnKcZCY!()^wfe2Gc#Jjiz2x zzv({HR?~LV4%4HiXH2Kf0<+m{GZ&f5%vI)UbB(#q>@oYz0du=KXznquHm@_UH{W2s z$-KebXa1{szxgHeQS&kLaq~&@>*iDDx6G%_Uzoo#e`Eg6{Db)?^DpLK&1cQ$k|aqZ zldMV3q}fUSq*X~9llCP2m~_@6v@jN(#b_~GES3yQmL=PgXR%ufEe?y*Qf8TAnQ5uE z)L7WBJAMtL3caTyjFPCfUTNDunRgf@s@>e?-Yi{{t|~ B1o{8~ literal 0 HcmV?d00001 diff --git a/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/5.TableView.xcscheme b/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/5.TableView.xcscheme new file mode 100644 index 0000000..3345089 --- /dev/null +++ b/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/5.TableView.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist b/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..e068ac3 --- /dev/null +++ b/5.TableView/5.TableView.xcodeproj/xcuserdata/daolq.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + 5.TableView.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + BF808B40204F91F000BF4AB8 + + primary + + + + + diff --git a/5.TableView/5.TableView/AppDelegate.swift b/5.TableView/5.TableView/AppDelegate.swift new file mode 100644 index 0000000..ec3a90d --- /dev/null +++ b/5.TableView/5.TableView/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// 5.TableView +// +// Created by DaoLQ on 3/7/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/5.TableView/5.TableView/Assets.xcassets/AppIcon.appiconset/Contents.json b/5.TableView/5.TableView/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..1d060ed --- /dev/null +++ b/5.TableView/5.TableView/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,93 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/5.TableView/5.TableView/Base.lproj/LaunchScreen.storyboard b/5.TableView/5.TableView/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/5.TableView/5.TableView/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/5.TableView/5.TableView/Base.lproj/Main.storyboard b/5.TableView/5.TableView/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f5b2efa --- /dev/null +++ b/5.TableView/5.TableView/Base.lproj/Main.storyboard @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/5.TableView/5.TableView/Info.plist b/5.TableView/5.TableView/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/5.TableView/5.TableView/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/5.TableView/5.TableView/ViewController.swift b/5.TableView/5.TableView/ViewController.swift new file mode 100644 index 0000000..fe29fc2 --- /dev/null +++ b/5.TableView/5.TableView/ViewController.swift @@ -0,0 +1,25 @@ +// +// ViewController.swift +// 5.TableView +// +// Created by DaoLQ on 3/7/18. +// Copyright © 2018 DaoLQ. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + +} + diff --git a/README.md b/README.md index 76205d9..7a2d9e8 100644 --- a/README.md +++ b/README.md @@ -1 +1,26 @@ # IOSTraining +## Lession 5: UITableView +**1. Basic** ++ UIView with UITableView ++ UITableviewController ++ Subclassing UITableView Cell ++ Custom cells ++ Delegation & data source ++ Reuse cell ++ Self-sizing cell (Dynamic Tableview Cell Height) + +**2. Middle** +- Action on cell & edit TableView + + Tableview Accessory Views + + Tableview Multiple Sections + + Tableview Deleting Rows + + Tableview Moving Rows + + Tableview Swipe Actions +- Adjust content view when keyboard show/hide + +**3. Advance** ++ Animation reload (like facebook when getting new messages) ++ Load more TableView + +## Exercise: +- For each technique demo 1 tableView and push to GitHub