Skip to content

Commit

Permalink
Timer的使用
Browse files Browse the repository at this point in the history
  • Loading branch information
pro648 committed Jan 21, 2020
1 parent a118449 commit 0b37213
Show file tree
Hide file tree
Showing 34 changed files with 2,193 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ iOS学习进程中的demo汇总
| SimpleFactory | [工厂模式 Factory Pattern](https://github.com/pro648/tips/wiki/%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F-Factory-Pattern) |
| StackView | [Auto Layout中Stack View的使用](https://github.com/pro648/tips/wiki/Auto-Layout%E4%B8%ADStack-View%E7%9A%84%E4%BD%BF%E7%94%A8) |
| StrategyPattern | [策略模式 Strategy Pattern](https://github.com/pro648/tips/wiki/%E7%AD%96%E7%95%A5%E6%A8%A1%E5%BC%8F-Design-Pattern) |
| Timer | [Timer的使用](https://github.com/pro648/tips/wiki/Timer%E7%9A%84%E4%BD%BF%E7%94%A8) |
| UIKitDynamics | [一篇文章学会使用UIKit Dynamics](https://github.com/pro648/tips/wiki/%E4%B8%80%E7%AF%87%E6%96%87%E7%AB%A0%E5%AD%A6%E4%BC%9A%E4%BD%BF%E7%94%A8UIKit%20Dynamics) |
| URLSession | [URLSession详解](https://github.com/pro648/tips/wiki/URLSession%E8%AF%A6%E8%A7%A3) |
| UserNotifications | [UserNotifications框架详解](https://github.com/pro648/tips/wiki/UserNotifications%E6%A1%86%E6%9E%B6%E8%AF%A6%E8%A7%A3)|
Expand Down
355 changes: 355 additions & 0 deletions Timer/Timer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,355 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
0D9E2A7E23D44336007D521B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A7D23D44336007D521B /* AppDelegate.swift */; };
0D9E2A8023D44336007D521B /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A7F23D44336007D521B /* SceneDelegate.swift */; };
0D9E2A8223D44336007D521B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A8123D44336007D521B /* ViewController.swift */; };
0D9E2A8523D44336007D521B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D9E2A8323D44336007D521B /* Main.storyboard */; };
0D9E2A8723D44338007D521B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D9E2A8623D44338007D521B /* Assets.xcassets */; };
0D9E2A8A23D44338007D521B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0D9E2A8823D44338007D521B /* LaunchScreen.storyboard */; };
0D9E2A9223D4438B007D521B /* Balloon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A9123D4438B007D521B /* Balloon.swift */; };
0D9E2A9423D44967007D521B /* Task.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A9323D44967007D521B /* Task.swift */; };
0D9E2A9623D449C0007D521B /* TaskTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D9E2A9523D449C0007D521B /* TaskTableViewCell.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0D9E2A7A23D44336007D521B /* Timer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Timer.app; sourceTree = BUILT_PRODUCTS_DIR; };
0D9E2A7D23D44336007D521B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
0D9E2A7F23D44336007D521B /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
0D9E2A8123D44336007D521B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
0D9E2A8423D44336007D521B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
0D9E2A8623D44338007D521B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0D9E2A8923D44338007D521B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
0D9E2A8B23D44338007D521B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0D9E2A9123D4438B007D521B /* Balloon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Balloon.swift; sourceTree = "<group>"; };
0D9E2A9323D44967007D521B /* Task.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Task.swift; sourceTree = "<group>"; };
0D9E2A9523D449C0007D521B /* TaskTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TaskTableViewCell.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
0D9E2A7723D44336007D521B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
0D9E2A7123D44336007D521B = {
isa = PBXGroup;
children = (
0D9E2A7C23D44336007D521B /* Timer */,
0D9E2A7B23D44336007D521B /* Products */,
);
sourceTree = "<group>";
};
0D9E2A7B23D44336007D521B /* Products */ = {
isa = PBXGroup;
children = (
0D9E2A7A23D44336007D521B /* Timer.app */,
);
name = Products;
sourceTree = "<group>";
};
0D9E2A7C23D44336007D521B /* Timer */ = {
isa = PBXGroup;
children = (
0D9E2A7D23D44336007D521B /* AppDelegate.swift */,
0D9E2A7F23D44336007D521B /* SceneDelegate.swift */,
0D9E2A8123D44336007D521B /* ViewController.swift */,
0D9E2A9523D449C0007D521B /* TaskTableViewCell.swift */,
0D9E2A9323D44967007D521B /* Task.swift */,
0D9E2A9123D4438B007D521B /* Balloon.swift */,
0D9E2A8323D44336007D521B /* Main.storyboard */,
0D9E2A8623D44338007D521B /* Assets.xcassets */,
0D9E2A8823D44338007D521B /* LaunchScreen.storyboard */,
0D9E2A8B23D44338007D521B /* Info.plist */,
);
path = Timer;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
0D9E2A7923D44336007D521B /* Timer */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0D9E2A8E23D44338007D521B /* Build configuration list for PBXNativeTarget "Timer" */;
buildPhases = (
0D9E2A7623D44336007D521B /* Sources */,
0D9E2A7723D44336007D521B /* Frameworks */,
0D9E2A7823D44336007D521B /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = Timer;
productName = Timer;
productReference = 0D9E2A7A23D44336007D521B /* Timer.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
0D9E2A7223D44336007D521B /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1130;
LastUpgradeCheck = 1130;
ORGANIZATIONNAME = pro648;
TargetAttributes = {
0D9E2A7923D44336007D521B = {
CreatedOnToolsVersion = 11.3;
};
};
};
buildConfigurationList = 0D9E2A7523D44336007D521B /* Build configuration list for PBXProject "Timer" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 0D9E2A7123D44336007D521B;
productRefGroup = 0D9E2A7B23D44336007D521B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
0D9E2A7923D44336007D521B /* Timer */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
0D9E2A7823D44336007D521B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0D9E2A8A23D44338007D521B /* LaunchScreen.storyboard in Resources */,
0D9E2A8723D44338007D521B /* Assets.xcassets in Resources */,
0D9E2A8523D44336007D521B /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
0D9E2A7623D44336007D521B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0D9E2A8223D44336007D521B /* ViewController.swift in Sources */,
0D9E2A7E23D44336007D521B /* AppDelegate.swift in Sources */,
0D9E2A9623D449C0007D521B /* TaskTableViewCell.swift in Sources */,
0D9E2A9423D44967007D521B /* Task.swift in Sources */,
0D9E2A8023D44336007D521B /* SceneDelegate.swift in Sources */,
0D9E2A9223D4438B007D521B /* Balloon.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
0D9E2A8323D44336007D521B /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
0D9E2A8423D44336007D521B /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
0D9E2A8823D44338007D521B /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
0D9E2A8923D44338007D521B /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
0D9E2A8C23D44338007D521B /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = 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;
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 = 13.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
0D9E2A8D23D44338007D521B /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_IMPLICIT_RETAIN_SELF = 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;
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 = 13.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
0D9E2A8F23D44338007D521B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6GTWBXFMR4;
INFOPLIST_FILE = Timer/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = pro648.Timer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
0D9E2A9023D44338007D521B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 6GTWBXFMR4;
INFOPLIST_FILE = Timer/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = pro648.Timer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
0D9E2A7523D44336007D521B /* Build configuration list for PBXProject "Timer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0D9E2A8C23D44338007D521B /* Debug */,
0D9E2A8D23D44338007D521B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0D9E2A8E23D44338007D521B /* Build configuration list for PBXNativeTarget "Timer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0D9E2A8F23D44338007D521B /* Debug */,
0D9E2A9023D44338007D521B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 0D9E2A7223D44336007D521B /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0b37213

Please sign in to comment.