diff --git a/.gitignore b/.gitignore index c964cd8..0d43ad2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ DerivedData # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control # #Pods/ + +大兄弟,这是重要文件,不可忽略,请及时修复这个BUG! \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.pbxproj" deleted file mode 100644 index 0896292..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,440 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6322ACA51C278A2500CD59B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACA41C278A2500CD59B9 /* main.m */; }; - 6322ACA81C278A2500CD59B9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACA71C278A2500CD59B9 /* AppDelegate.m */; }; - 6322ACAB1C278A2500CD59B9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACAA1C278A2500CD59B9 /* ViewController.m */; }; - 6322ACAE1C278A2500CD59B9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACAC1C278A2500CD59B9 /* Main.storyboard */; }; - 6322ACB01C278A2500CD59B9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACAF1C278A2500CD59B9 /* Images.xcassets */; }; - 6322ACB31C278A2500CD59B9 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACB11C278A2500CD59B9 /* LaunchScreen.xib */; }; - 6322ACBF1C278A2500CD59B9 /* _1____CoreLocation___________iOS8_0__Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACBE1C278A2500CD59B9 /* _1____CoreLocation___________iOS8_0__Tests.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 6322ACB91C278A2500CD59B9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 6322AC971C278A2500CD59B9 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6322AC9E1C278A2500CD59B9; - remoteInfo = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 6322AC9F1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACA31C278A2500CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACA41C278A2500CD59B9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 6322ACA61C278A2500CD59B9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 6322ACA71C278A2500CD59B9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 6322ACA91C278A2500CD59B9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 6322ACAA1C278A2500CD59B9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 6322ACAD1C278A2500CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 6322ACAF1C278A2500CD59B9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 6322ACB21C278A2500CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 6322ACB81C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACBD1C278A2500CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACBE1C278A2500CD59B9 /* _1____CoreLocation___________iOS8_0__Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "_1____CoreLocation___________iOS8_0__Tests.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6322AC9C1C278A2500CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACB51C278A2500CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6322AC961C278A2500CD59B9 = { - isa = PBXGroup; - children = ( - 6322ACA11C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 */, - 6322ACBB1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests */, - 6322ACA01C278A2500CD59B9 /* Products */, - ); - sourceTree = ""; - }; - 6322ACA01C278A2500CD59B9 /* Products */ = { - isa = PBXGroup; - children = ( - 6322AC9F1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app */, - 6322ACB81C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 6322ACA11C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 */ = { - isa = PBXGroup; - children = ( - 6322ACA61C278A2500CD59B9 /* AppDelegate.h */, - 6322ACA71C278A2500CD59B9 /* AppDelegate.m */, - 6322ACA91C278A2500CD59B9 /* ViewController.h */, - 6322ACAA1C278A2500CD59B9 /* ViewController.m */, - 6322ACAC1C278A2500CD59B9 /* Main.storyboard */, - 6322ACAF1C278A2500CD59B9 /* Images.xcassets */, - 6322ACB11C278A2500CD59B9 /* LaunchScreen.xib */, - 6322ACA21C278A2500CD59B9 /* Supporting Files */, - ); - path = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - sourceTree = ""; - }; - 6322ACA21C278A2500CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACA31C278A2500CD59B9 /* Info.plist */, - 6322ACA41C278A2500CD59B9 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 6322ACBB1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests */ = { - isa = PBXGroup; - children = ( - 6322ACBE1C278A2500CD59B9 /* _1____CoreLocation___________iOS8_0__Tests.m */, - 6322ACBC1C278A2500CD59B9 /* Supporting Files */, - ); - path = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests"; - sourceTree = ""; - }; - 6322ACBC1C278A2500CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACBD1C278A2500CD59B9 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6322AC9E1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACC21C278A2500CD59B9 /* Build configuration list for PBXNativeTarget "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛" */; - buildPhases = ( - 6322AC9B1C278A2500CD59B9 /* Sources */, - 6322AC9C1C278A2500CD59B9 /* Frameworks */, - 6322AC9D1C278A2500CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - productName = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - productReference = 6322AC9F1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app */; - productType = "com.apple.product-type.application"; - }; - 6322ACB71C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACC51C278A2500CD59B9 /* Build configuration list for PBXNativeTarget "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests" */; - buildPhases = ( - 6322ACB41C278A2500CD59B9 /* Sources */, - 6322ACB51C278A2500CD59B9 /* Frameworks */, - 6322ACB61C278A2500CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 6322ACBA1C278A2500CD59B9 /* PBXTargetDependency */, - ); - name = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests"; - productName = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests"; - productReference = 6322ACB81C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6322AC971C278A2500CD59B9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0640; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 6322AC9E1C278A2500CD59B9 = { - CreatedOnToolsVersion = 6.4; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - 6322ACB71C278A2500CD59B9 = { - CreatedOnToolsVersion = 6.4; - TestTargetID = 6322AC9E1C278A2500CD59B9; - }; - }; - }; - buildConfigurationList = 6322AC9A1C278A2500CD59B9 /* Build configuration list for PBXProject "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6322AC961C278A2500CD59B9; - productRefGroup = 6322ACA01C278A2500CD59B9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6322AC9E1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 */, - 6322ACB71C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6322AC9D1C278A2500CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACAE1C278A2500CD59B9 /* Main.storyboard in Resources */, - 6322ACB31C278A2500CD59B9 /* LaunchScreen.xib in Resources */, - 6322ACB01C278A2500CD59B9 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACB61C278A2500CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6322AC9B1C278A2500CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACAB1C278A2500CD59B9 /* ViewController.m in Sources */, - 6322ACA81C278A2500CD59B9 /* AppDelegate.m in Sources */, - 6322ACA51C278A2500CD59B9 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACB41C278A2500CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACBF1C278A2500CD59B9 /* _1____CoreLocation___________iOS8_0__Tests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 6322ACBA1C278A2500CD59B9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 6322AC9E1C278A2500CD59B9 /* 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 */; - targetProxy = 6322ACB91C278A2500CD59B9 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 6322ACAC1C278A2500CD59B9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6322ACAD1C278A2500CD59B9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 6322ACB11C278A2500CD59B9 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 6322ACB21C278A2500CD59B9 /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6322ACC01C278A2500CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - 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 = 7.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6322ACC11C278A2500CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 7.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6322ACC31C278A2500CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - INFOPLIST_FILE = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 6322ACC41C278A2500CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; - INFOPLIST_FILE = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 6322ACC61C278A2500CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app/01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - }; - name = Debug; - }; - 6322ACC71C278A2500CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛.app/01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6322AC9A1C278A2500CD59B9 /* Build configuration list for PBXProject "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACC01C278A2500CD59B9 /* Debug */, - 6322ACC11C278A2500CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACC21C278A2500CD59B9 /* Build configuration list for PBXNativeTarget "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACC31C278A2500CD59B9 /* Debug */, - 6322ACC41C278A2500CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; - 6322ACC51C278A2500CD59B9 /* Build configuration list for PBXNativeTarget "01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACC61C278A2500CD59B9 /* Debug */, - 6322ACC71C278A2500CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6322AC971C278A2500CD59B9 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 24569d7..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.h" deleted file mode 100644 index d0c165a..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.m" deleted file mode 100644 index 445f8bb..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/LaunchScreen.xib" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/LaunchScreen.xib" deleted file mode 100644 index 011c7b8..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/LaunchScreen.xib" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Contents.json" deleted file mode 100644 index 6101eba..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Contents.json" +++ /dev/null @@ -1,59 +0,0 @@ -{ - "images" : [ - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "736h", - "filename" : "Default-2208@3x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "736h", - "filename" : "Default-2208_lan@3x.png", - "minimum-system-version" : "8.0", - "orientation" : "landscape", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "667h", - "filename" : "Default-1334@2x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "filename" : "Default@2x.png", - "scale" : "2x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "retina4", - "filename" : "Default-568h@2x.png", - "minimum-system-version" : "7.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "extent" : "full-screen", - "filename" : "Default.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-1334@2x.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-1334@2x.png" deleted file mode 100644 index 74571f5..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-1334@2x.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208@3x.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208@3x.png" deleted file mode 100644 index 229780d..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208@3x.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208_lan@3x.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208_lan@3x.png" deleted file mode 100644 index 5d8d483..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-2208_lan@3x.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png" deleted file mode 100644 index e86725b..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default-568h@2x.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default.png" deleted file mode 100644 index 7fa3ba0..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default@2x.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default@2x.png" deleted file mode 100644 index e65a4a6..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Images.xcassets/LaunchImage.launchimage/Default@2x.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Info.plist" deleted file mode 100644 index 866cd09..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/Info.plist" +++ /dev/null @@ -1,53 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationUsageDescription - ios8.0-瀹氫綅鎻忚堪 - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.h" deleted file mode 100644 index d78571c..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.m" deleted file mode 100644 index d559b24..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/ViewController.m" +++ /dev/null @@ -1,102 +0,0 @@ -// -// ViewController.m -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - -@interface ViewController () - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - - -@end - -@implementation ViewController - -#pragma mark - 鎳掑姞杞 -/** - * 浣嶇疆绠$悊鑰呮噿鍔犺浇鏂规硶 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - // 1. 鍒涘缓浣嶇疆绠$悊鑰 - _locationM = [[CLLocationManager alloc] init]; - // 1.1 浠g悊, block , 閫氱煡, 鎷夋ā寮 - _locationM.delegate = self; - - // 璁剧疆杩囨护璺濈(姣忛殧100绫冲畾浣嶄竴娆) - // 111km/100m 1 - // 褰撳墠浣嶇疆璺濈涓婃浣嶇疆涔嬮棿鐨勭墿鐞嗚窛绂诲ぇ浜庤繖涓, 灏变細閫氳繃浠g悊鍛婅瘔澶栫晫 -// _locationM.distanceFilter = 100; - - - // 瀹氫綅绮剧‘搴 - /** - * kCLLocationAccuracyBestForNavigation // 鏈閫傚悎瀵艰埅 - kCLLocationAccuracyBest; // 鏈濂界殑 - kCLLocationAccuracyNearestTenMeters; // 闄勮繎10绫 - kCLLocationAccuracyHundredMeters; // 闄勮繎100绫 - kCLLocationAccuracyKilometer; // 闄勮繎1000绫 - kCLLocationAccuracyThreeKilometers; // 闄勮繎3000绫 - */ - // 濡傛灉绮剧‘搴﹁秺楂, 瀹氫綅瓒婄簿鍑, 浣嗘槸瓒婅楃數, 鑰屼笖瀹氫綅鏃堕棿瓒婇暱 - _locationM.desiredAccuracy = kCLLocationAccuracyBest; - } - return _locationM; -} - - - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - - - - // 2. 浣跨敤浣嶇疆绠$悊鑰呰幏鍙栫敤鎴蜂綅缃俊鎭 - // 灏忕粡楠: 濡傛灉浣跨敤CLLocationManager 瀵硅薄瀹炵幇涓浜涙湇鍔 , 鍙互浣跨敤start寮濮嬫煇涓湇鍔, stop, 缁撴潫杩欎釜鏈嶅姟 - // ing, 涓鏃﹁皟鐢ㄤ簡杩欎釜鏂规硶, 灏变細鍐嶅悗鍙颁笉鏂殑鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅, 鐒跺悗鍛婅瘔澶栫晫 - // 榛樿鎯呭喌涓, 鍙兘鍦ㄥ墠鍙拌幏鍙栫敤鎴蜂綅缃俊鎭, 濡傛灉鎯宠鍦ㄥ悗鍙拌幏鍙栦綅缃,闇瑕佸嬀閫夊悗鍙版ā寮 locaiton updates - - // 鏍囧噯瀹氫綅鏈嶅姟(gps/WiFi/ 鍩虹珯) - // 绋嬪簭鍏抽棴,灏辨病娉曡幏鍙栦綅缃 - [self.locationM startUpdatingLocation]; - - - // 鐩戝惉閲嶅ぇ浣嶇疆鏀瑰彉鐨勬湇鍔(鍩虹珯, 瑕佹眰鏈夌數璇濇ā鍧) - // 褰揳pp琚畬鍏ㄥ叧闂椂,涔熷彲浠ユ帴鏀跺埌浣嶇疆閫氱煡,骞惰app杩涘叆鍒板悗鍙板鐞 - // 瀹氫綅绮惧害鐩告瘮浜庝笂闈,绮惧害涓嶅ぇ,鎵浠ヨ楃數灏,鑰屼笖瀹氫綅鏇存柊棰戠巼渚濇嵁鍩虹珯瀵嗗害鑰屽畾 - [self.locationM startMonitoringSignificantLocationChanges]; - -} - - -#pragma mark - CLLocationManagerDelegate - -/** - * 褰撹幏鍙栧埌鐢ㄦ埛浣嶇疆淇℃伅鏃惰皟鐢 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param locations 浣嶇疆鏁扮粍 - */ --(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - NSLog(@"鑾峰彇鍒颁綅缃簡"); - - // 1. 鑾峰彇涓娆′綅缃俊鎭, 鐒跺悗鍋氫笟鍔¢昏緫 - [manager stopUpdatingLocation]; - - - // 2. 澶氭鑾峰彇浣嶇疆, 瀵艰埅 - - -} - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/main.m" deleted file mode 100644 index 09a5a57..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/Info.plist" deleted file mode 100644 index 06ac7ba..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/Info.plist" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/_1____CoreLocation___________iOS8_0__Tests.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/_1____CoreLocation___________iOS8_0__Tests.m" deleted file mode 100644 index 1053085..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211/01-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0-\357\274\211Tests/_1____CoreLocation___________iOS8_0__Tests.m" +++ /dev/null @@ -1,40 +0,0 @@ -// -// _1____CoreLocation___________iOS8_0__Tests.m -// 01-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0-锛塗ests -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import - -@interface _1____CoreLocation___________iOS8_0__Tests : XCTestCase - -@end - -@implementation _1____CoreLocation___________iOS8_0__Tests - -- (void)setUp { - [super setUp]; - // Put setup code here. This method is called before the invocation of each test method in the class. -} - -- (void)tearDown { - // Put teardown code here. This method is called after the invocation of each test method in the class. - [super tearDown]; -} - -- (void)testExample { - // This is an example of a functional test case. - XCTAssert(YES, @"Pass"); -} - -- (void)testPerformanceExample { - // This is an example of a performance test case. - [self measureBlock:^{ - // Put the code you want to measure the time of here. - }]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" deleted file mode 100644 index 8905453..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,438 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD61C2795FD00CD59B9 /* main.m */; }; - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */; }; - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACDC1C2795FD00CD59B9 /* ViewController.m */; }; - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */; }; - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE11C2795FD00CD59B9 /* Images.xcassets */; }; - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */; }; - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 6322ACC91C2795FD00CD59B9 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6322ACD01C2795FD00CD59B9; - remoteInfo = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACD51C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACD61C2795FD00CD59B9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 6322ACDF1C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 6322ACE41C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACEF1C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "_2____CoreLocation___________iOS8_0____Tests.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6322ACCE1C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE71C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6322ACC81C2795FD00CD59B9 = { - isa = PBXGroup; - children = ( - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - 6322ACD21C2795FD00CD59B9 /* Products */, - ); - sourceTree = ""; - }; - 6322ACD21C2795FD00CD59B9 /* Products */ = { - isa = PBXGroup; - children = ( - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */, - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXGroup; - children = ( - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */, - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */, - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */, - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */, - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */, - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */, - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */, - 6322ACD41C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - sourceTree = ""; - }; - 6322ACD41C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACD51C2795FD00CD59B9 /* Info.plist */, - 6322ACD61C2795FD00CD59B9 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXGroup; - children = ( - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */, - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - sourceTree = ""; - }; - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACEF1C2795FD00CD59B9 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - buildPhases = ( - 6322ACCD1C2795FD00CD59B9 /* Sources */, - 6322ACCE1C2795FD00CD59B9 /* Frameworks */, - 6322ACCF1C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productReference = 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */; - productType = "com.apple.product-type.application"; - }; - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */; - buildPhases = ( - 6322ACE61C2795FD00CD59B9 /* Sources */, - 6322ACE71C2795FD00CD59B9 /* Frameworks */, - 6322ACE81C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */, - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productReference = 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6322ACC91C2795FD00CD59B9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0640; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 6322ACD01C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - 6322ACE91C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - TestTargetID = 6322ACD01C2795FD00CD59B9; - }; - }; - }; - buildConfigurationList = 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6322ACC81C2795FD00CD59B9; - productRefGroup = 6322ACD21C2795FD00CD59B9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6322ACCF1C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */, - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */, - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE81C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6322ACCD1C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */, - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */, - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE61C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */; - targetProxy = 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6322ACDF1C2795FD00CD59B9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 6322ACE41C2795FD00CD59B9 /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6322ACF21C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6322ACF31C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6322ACF51C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 6322ACF61C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 6322ACF81C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Debug; - }; - 6322ACF91C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF21C2795FD00CD59B9 /* Debug */, - 6322ACF31C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF51C2795FD00CD59B9 /* Debug */, - 6322ACF61C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; - 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF81C2795FD00CD59B9 /* Debug */, - 6322ACF91C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6322ACC91C2795FD00CD59B9 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 17dd1d6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" deleted file mode 100644 index 693eef9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" deleted file mode 100644 index c613863..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" deleted file mode 100644 index 6312846..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" deleted file mode 100644 index d0ce494..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" +++ /dev/null @@ -1,55 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationAlwaysUsageDescription - iOS8.0+鍓嶅悗鍙板畾浣嶆弿杩 - NSLocationUsageDescription - iOS8.0-瀹氫綅鎻忚堪 - NSLocationWhenInUseUsageDescription - iOS8.0+鍓嶅彴瀹氫綅鎻忚堪 - UIBackgroundModes - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" deleted file mode 100644 index f4f665e..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" deleted file mode 100644 index a04eb8d..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" +++ /dev/null @@ -1,133 +0,0 @@ -// -// ViewController.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - -@interface ViewController () - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - - -@end - -@implementation ViewController - -#pragma mark - 鎳掑姞杞 - -/** - * 浣嶇疆绠$悊鑰 鎳掑姞杞芥柟娉 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - - /** ios8.0+瀹氫綅閫傞厤 */ - if ([[UIDevice currentDevice].systemVersion floatValue] - >= 8.0) { - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 榛樿鎯呭喌鍙兘鍦ㄥ墠鍙拌幏鍙栫敤鎴蜂綅缃俊鎭 - // 濡傛灉鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 闇瑕佸嬀閫夊悗鍙版ā寮, 浣嗘槸, 褰揂PP鎺ㄥ埌鍚庡彴鏃, 浼氬嚭鐜颁竴涓摑鏉, 涓嶆柇鎻愰啋鐢ㄦ埛 -// [_locationM requestWhenInUseAuthorization]; - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴风殑浣嶇疆淇℃伅, 鑰屼笖涓嶄細鍑虹幇钃濇潯, 鏍规槸鍚﹀嬀閫変簡鍚庡彴妯″紡location udpates娌℃湁鍏崇郴 - [_locationM requestAlwaysAuthorization]; - } - - // 2涓傞厤鏂规 -// if ([_locationM respondsToSelector:@selector(requestAlwaysAuthorization)]) { -// [_locationM requestAlwaysAuthorization]; -// } - - } - return _locationM; -} - - - --(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self.locationM startUpdatingLocation]; -} - - - -#pragma mark - CLLocationManagerDelegate --(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - NSLog(@"瀹氫綅鍒颁簡"); -} - - -/** - * 褰撳墠鐨勬巿鏉冪姸鎬佸彂鐢熸敼鍙樻椂璋冪敤 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param status 鎺堟潈鐘舵 - */ --(void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - switch (status) { - case kCLAuthorizationStatusNotDetermined: - { - NSLog(@"鐢ㄦ埛娌℃湁鍐冲畾"); - break; - } - // 绯荤粺棰勭暀瀛楁, 鏆傛椂娌℃湁鐢 - case kCLAuthorizationStatusRestricted: - { - NSLog(@"鍙楅檺鍒"); - break; - } - case kCLAuthorizationStatusDenied: - { - - // 鍒ゆ柇鏄惁鏀寔瀹氫綅, 鎴栬呭畾浣嶆湇鍔℃槸鍚﹀紑鍚 - if ([CLLocationManager locationServicesEnabled]) - { - NSLog(@"鐪熸琚嫆缁"); - // iOS8.0- , 鎴浘鎻愰啋鐢ㄦ埛鏁翠釜鎿嶄綔娴佺▼ - // iO8.0+, 鐩存帴璺宠浆鍒拌缃晫闈, 鏍稿績浠g爜 - // 寮规, 璁╃敤鎴烽夋嫨涔嬪悗鍐嶈烦杞 - NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; - if ([[UIApplication sharedApplication] canOpenURL:url]) { - [[UIApplication sharedApplication] openURL:url]; - } - }else - { - NSLog(@"瀹氫綅鏈嶅姟鍏抽棴"); - - } - break; - } - case kCLAuthorizationStatusAuthorizedAlways: - { - NSLog(@"鍓嶅悗鍙板畾浣嶆巿鏉"); - break; - } - case kCLAuthorizationStatusAuthorizedWhenInUse: - { - NSLog(@"鍓嶅彴瀹氫綅鎺堟潈"); - break; - } - - - default: - break; - } -} - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" deleted file mode 100644 index 8c6d933..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" deleted file mode 100644 index 06ac7ba..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" deleted file mode 100644 index fd8b78f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" +++ /dev/null @@ -1,40 +0,0 @@ -// -// _2____CoreLocation___________iOS8_0____Tests.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import - -@interface _2____CoreLocation___________iOS8_0____Tests : XCTestCase - -@end - -@implementation _2____CoreLocation___________iOS8_0____Tests - -- (void)setUp { - [super setUp]; - // Put setup code here. This method is called before the invocation of each test method in the class. -} - -- (void)tearDown { - // Put teardown code here. This method is called after the invocation of each test method in the class. - [super tearDown]; -} - -- (void)testExample { - // This is an example of a functional test case. - XCTAssert(YES, @"Pass"); -} - -- (void)testPerformanceExample { - // This is an example of a performance test case. - [self measureBlock:^{ - // Put the code you want to measure the time of here. - }]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" deleted file mode 100644 index 5c15ff9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,440 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD61C2795FD00CD59B9 /* main.m */; }; - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */; }; - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACDC1C2795FD00CD59B9 /* ViewController.m */; }; - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */; }; - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE11C2795FD00CD59B9 /* Images.xcassets */; }; - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */; }; - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 6322ACC91C2795FD00CD59B9 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6322ACD01C2795FD00CD59B9; - remoteInfo = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACD51C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACD61C2795FD00CD59B9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 6322ACDF1C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 6322ACE41C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACEF1C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "_2____CoreLocation___________iOS8_0____Tests.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6322ACCE1C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE71C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6322ACC81C2795FD00CD59B9 = { - isa = PBXGroup; - children = ( - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - 6322ACD21C2795FD00CD59B9 /* Products */, - ); - sourceTree = ""; - }; - 6322ACD21C2795FD00CD59B9 /* Products */ = { - isa = PBXGroup; - children = ( - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */, - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXGroup; - children = ( - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */, - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */, - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */, - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */, - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */, - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */, - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */, - 6322ACD41C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - sourceTree = ""; - }; - 6322ACD41C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACD51C2795FD00CD59B9 /* Info.plist */, - 6322ACD61C2795FD00CD59B9 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXGroup; - children = ( - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */, - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - sourceTree = ""; - }; - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACEF1C2795FD00CD59B9 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - buildPhases = ( - 6322ACCD1C2795FD00CD59B9 /* Sources */, - 6322ACCE1C2795FD00CD59B9 /* Frameworks */, - 6322ACCF1C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productReference = 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */; - productType = "com.apple.product-type.application"; - }; - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */; - buildPhases = ( - 6322ACE61C2795FD00CD59B9 /* Sources */, - 6322ACE71C2795FD00CD59B9 /* Frameworks */, - 6322ACE81C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */, - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productReference = 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6322ACC91C2795FD00CD59B9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0640; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 6322ACD01C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - 6322ACE91C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - TestTargetID = 6322ACD01C2795FD00CD59B9; - }; - }; - }; - buildConfigurationList = 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6322ACC81C2795FD00CD59B9; - productRefGroup = 6322ACD21C2795FD00CD59B9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6322ACCF1C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */, - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */, - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE81C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6322ACCD1C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */, - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */, - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE61C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */; - targetProxy = 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6322ACDF1C2795FD00CD59B9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 6322ACE41C2795FD00CD59B9 /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6322ACF21C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6322ACF31C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6322ACF51C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 6322ACF61C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 6322ACF81C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Debug; - }; - 6322ACF91C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF21C2795FD00CD59B9 /* Debug */, - 6322ACF31C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF51C2795FD00CD59B9 /* Debug */, - 6322ACF61C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF81C2795FD00CD59B9 /* Debug */, - 6322ACF91C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6322ACC91C2795FD00CD59B9 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 17dd1d6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" deleted file mode 100644 index 693eef9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" deleted file mode 100644 index c613863..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" deleted file mode 100644 index 6312846..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" deleted file mode 100644 index 9133739..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" +++ /dev/null @@ -1,57 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationAlwaysUsageDescription - iOS8.0+鍓嶅悗鍙板畾浣嶆弿杩 - NSLocationUsageDescription - iOS8.0-瀹氫綅鎻忚堪 - NSLocationWhenInUseUsageDescription - iOS8.0+鍓嶅彴瀹氫綅鎻忚堪 - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" deleted file mode 100644 index f4f665e..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" deleted file mode 100644 index 3778666..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" +++ /dev/null @@ -1,161 +0,0 @@ -// -// ViewController.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - -#define isIOS(version) ([[UIDevice currentDevice].systemVersion floatValue] >= version) - - -@interface ViewController () - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - - -@end - -@implementation ViewController - -#pragma mark - 鎳掑姞杞 - -/** - * 浣嶇疆绠$悊鑰 鎳掑姞杞芥柟娉 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - - /** ios8.0+瀹氫綅閫傞厤 */ - if (isIOS(8.0)) { - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 榛樿鎯呭喌鍙兘鍦ㄥ墠鍙拌幏鍙栫敤鎴蜂綅缃俊鎭 - // 濡傛灉鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 闇瑕佸嬀閫夊悗鍙版ā寮, 浣嗘槸, 褰揂PP鎺ㄥ埌鍚庡彴鏃, 浼氬嚭鐜颁竴涓摑鏉, 涓嶆柇鎻愰啋鐢ㄦ埛 - [_locationM requestWhenInUseAuthorization]; - - // 濡傛灉瀹炲湪iOS9.0涔嬪悗, 姝ゆ椂濡傛灉鍦ㄥ墠鍙板畾浣嶆巿鏉冩儏鍐典笅鍘, 鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 涓嶆瑕佸嬀閫夊悗鍙版ā寮, 杩樿璁剧疆浠ヤ笅灞炴т负yes - // 鎯宠鎵ц杩欎釜鏂规硶, 涓瀹氳娉ㄦ剰, 闇瑕佸嬀閫夊悗鍙版ā寮弆ocation updates, 濡傛灉娌℃湁鍕鹃 ,鍚庢灉鑷礋 - if (isIOS(9.0)) - { - _locationM.allowsBackgroundLocationUpdates = YES; - } - - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴风殑浣嶇疆淇℃伅, 鑰屼笖涓嶄細鍑虹幇钃濇潯, 鏍规槸鍚﹀嬀閫変簡鍚庡彴妯″紡location udpates娌℃湁鍏崇郴 -// [_locationM requestAlwaysAuthorization]; - } - - // 2涓傞厤鏂规 -// if ([_locationM respondsToSelector:@selector(requestAlwaysAuthorization)]) { -// [_locationM requestAlwaysAuthorization]; -// } - - } - return _locationM; -} - - - --(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ -// [self.locationM startUpdatingLocation]; - - - // 鍗曟瀹氫綅璇锋眰 - /** - * - kCLLocationAccuracyBestForNavigation - kCLLocationAccuracyBest; - kCLLocationAccuracyNearestTenMeters; - kCLLocationAccuracyHundredMeters; - kCLLocationAccuracyKilometer; - kCLLocationAccuracyThreeKilometers; - */ - // 濡傛灉鍦ㄦ湁鏁堟椂闂村唴, 瀹氫綅鍒扮簿纭害鏈楂樼殑浣嶇疆鏁版嵁,灏辩洿鎺ラ氳繃浠g悊鍛婅瘔鎴戜滑, 濡傛灉宸茬粡瓒呮椂, 閭e氨鎶婂綋鍓嶅凡缁忓畾浣嶅埌鐨勪綅缃俊鎭氳繃浠g悊鍛婅瘔鎴戜滑 - // 娉ㄦ剰浜嬮」: 1. 涓嶈兘涓巗tartUpdatelocation 2. 浠g悊蹇呴』瀹炵幇瀹氫綅澶辫触鐨勬柟娉 - [self.locationM requestLocation]; -} - - - -#pragma mark - CLLocationManagerDelegate --(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - NSLog(@"瀹氫綅鍒颁簡"); -} - - -/** - * 褰撳墠鐨勬巿鏉冪姸鎬佸彂鐢熸敼鍙樻椂璋冪敤 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param status 鎺堟潈鐘舵 - */ --(void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - switch (status) { - case kCLAuthorizationStatusNotDetermined: - { - NSLog(@"鐢ㄦ埛娌℃湁鍐冲畾"); - break; - } - // 绯荤粺棰勭暀瀛楁, 鏆傛椂娌℃湁鐢 - case kCLAuthorizationStatusRestricted: - { - NSLog(@"鍙楅檺鍒"); - break; - } - case kCLAuthorizationStatusDenied: - { - - // 鍒ゆ柇鏄惁鏀寔瀹氫綅, 鎴栬呭畾浣嶆湇鍔℃槸鍚﹀紑鍚 - if ([CLLocationManager locationServicesEnabled]) - { - NSLog(@"鐪熸琚嫆缁"); - // iOS8.0- , 鎴浘鎻愰啋鐢ㄦ埛鏁翠釜鎿嶄綔娴佺▼ - // iO8.0+, 鐩存帴璺宠浆鍒拌缃晫闈, 鏍稿績浠g爜 - // 寮规, 璁╃敤鎴烽夋嫨涔嬪悗鍐嶈烦杞 - NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; - if ([[UIApplication sharedApplication] canOpenURL:url]) { - [[UIApplication sharedApplication] openURL:url]; - } - }else - { - NSLog(@"瀹氫綅鏈嶅姟鍏抽棴"); - - } - break; - } - case kCLAuthorizationStatusAuthorizedAlways: - { - NSLog(@"鍓嶅悗鍙板畾浣嶆巿鏉"); - break; - } - case kCLAuthorizationStatusAuthorizedWhenInUse: - { - NSLog(@"鍓嶅彴瀹氫綅鎺堟潈"); - break; - } - - - default: - break; - } -} - --(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error -{ - NSLog(@"瀹氫綅澶辫触"); -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" deleted file mode 100644 index 8c6d933..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" deleted file mode 100644 index 06ac7ba..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" deleted file mode 100644 index fd8b78f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/03-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS9.0\350\241\245\345\205\205\357\274\211/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" +++ /dev/null @@ -1,40 +0,0 @@ -// -// _2____CoreLocation___________iOS8_0____Tests.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import - -@interface _2____CoreLocation___________iOS8_0____Tests : XCTestCase - -@end - -@implementation _2____CoreLocation___________iOS8_0____Tests - -- (void)setUp { - [super setUp]; - // Put setup code here. This method is called before the invocation of each test method in the class. -} - -- (void)tearDown { - // Put teardown code here. This method is called after the invocation of each test method in the class. - [super tearDown]; -} - -- (void)testExample { - // This is an example of a functional test case. - XCTAssert(YES, @"Pass"); -} - -- (void)testPerformanceExample { - // This is an example of a performance test case. - [self measureBlock:^{ - // Put the code you want to measure the time of here. - }]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" deleted file mode 100644 index 5c15ff9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,440 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD61C2795FD00CD59B9 /* main.m */; }; - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */; }; - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACDC1C2795FD00CD59B9 /* ViewController.m */; }; - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */; }; - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE11C2795FD00CD59B9 /* Images.xcassets */; }; - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */; }; - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 6322ACC91C2795FD00CD59B9 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 6322ACD01C2795FD00CD59B9; - remoteInfo = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACD51C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACD61C2795FD00CD59B9 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 6322ACDF1C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 6322ACE41C2795FD00CD59B9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6322ACEF1C2795FD00CD59B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "_2____CoreLocation___________iOS8_0____Tests.m"; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6322ACCE1C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE71C2795FD00CD59B9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 6322ACC81C2795FD00CD59B9 = { - isa = PBXGroup; - children = ( - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - 6322ACD21C2795FD00CD59B9 /* Products */, - ); - sourceTree = ""; - }; - 6322ACD21C2795FD00CD59B9 /* Products */ = { - isa = PBXGroup; - children = ( - 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */, - 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */, - ); - name = Products; - sourceTree = ""; - }; - 6322ACD31C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXGroup; - children = ( - 6322ACD81C2795FD00CD59B9 /* AppDelegate.h */, - 6322ACD91C2795FD00CD59B9 /* AppDelegate.m */, - 6322ACDB1C2795FD00CD59B9 /* ViewController.h */, - 6322ACDC1C2795FD00CD59B9 /* ViewController.m */, - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */, - 6322ACE11C2795FD00CD59B9 /* Images.xcassets */, - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */, - 6322ACD41C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - sourceTree = ""; - }; - 6322ACD41C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACD51C2795FD00CD59B9 /* Info.plist */, - 6322ACD61C2795FD00CD59B9 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 6322ACED1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXGroup; - children = ( - 6322ACF01C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m */, - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */, - ); - path = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - sourceTree = ""; - }; - 6322ACEE1C2795FD00CD59B9 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 6322ACEF1C2795FD00CD59B9 /* Info.plist */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - buildPhases = ( - 6322ACCD1C2795FD00CD59B9 /* Sources */, - 6322ACCE1C2795FD00CD59B9 /* Frameworks */, - 6322ACCF1C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - productReference = 6322ACD11C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app */; - productType = "com.apple.product-type.application"; - }; - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */; - buildPhases = ( - 6322ACE61C2795FD00CD59B9 /* Sources */, - 6322ACE71C2795FD00CD59B9 /* Frameworks */, - 6322ACE81C2795FD00CD59B9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */, - ); - name = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productName = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests"; - productReference = 6322ACEA1C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6322ACC91C2795FD00CD59B9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0640; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 6322ACD01C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - 6322ACE91C2795FD00CD59B9 = { - CreatedOnToolsVersion = 6.4; - TestTargetID = 6322ACD01C2795FD00CD59B9; - }; - }; - }; - buildConfigurationList = 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6322ACC81C2795FD00CD59B9; - productRefGroup = 6322ACD21C2795FD00CD59B9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */, - 6322ACE91C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6322ACCF1C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACE01C2795FD00CD59B9 /* Main.storyboard in Resources */, - 6322ACE51C2795FD00CD59B9 /* LaunchScreen.xib in Resources */, - 6322ACE21C2795FD00CD59B9 /* Images.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE81C2795FD00CD59B9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6322ACCD1C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACDD1C2795FD00CD59B9 /* ViewController.m in Sources */, - 6322ACDA1C2795FD00CD59B9 /* AppDelegate.m in Sources */, - 6322ACD71C2795FD00CD59B9 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 6322ACE61C2795FD00CD59B9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6322ACF11C2795FD00CD59B9 /* _2____CoreLocation___________iOS8_0____Tests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 6322ACEC1C2795FD00CD59B9 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 6322ACD01C2795FD00CD59B9 /* 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 */; - targetProxy = 6322ACEB1C2795FD00CD59B9 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 6322ACDE1C2795FD00CD59B9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6322ACDF1C2795FD00CD59B9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 6322ACE31C2795FD00CD59B9 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 6322ACE41C2795FD00CD59B9 /* Base */, - ); - name = LaunchScreen.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6322ACF21C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6322ACF31C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 6.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6322ACF51C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 6322ACF61C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 6322ACF81C2795FD00CD59B9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Debug; - }; - 6322ACF91C2795FD00CD59B9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - ); - INFOPLIST_FILE = "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛.app/02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6322ACCC1C2795FD00CD59B9 /* Build configuration list for PBXProject "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF21C2795FD00CD59B9 /* Debug */, - 6322ACF31C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACF41C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF51C2795FD00CD59B9 /* Debug */, - 6322ACF61C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6322ACF71C2795FD00CD59B9 /* Build configuration list for PBXNativeTarget "02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6322ACF81C2795FD00CD59B9 /* Debug */, - 6322ACF91C2795FD00CD59B9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6322ACC91C2795FD00CD59B9 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 17dd1d6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" deleted file mode 100644 index 693eef9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" deleted file mode 100644 index c613863..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" deleted file mode 100644 index 6312846..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/LaunchScreen.xib" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Images.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" deleted file mode 100644 index 9133739..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/Info.plist" +++ /dev/null @@ -1,57 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationAlwaysUsageDescription - iOS8.0+鍓嶅悗鍙板畾浣嶆弿杩 - NSLocationUsageDescription - iOS8.0-瀹氫綅鎻忚堪 - NSLocationWhenInUseUsageDescription - iOS8.0+鍓嶅彴瀹氫綅鎻忚堪 - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" deleted file mode 100644 index f4f665e..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" deleted file mode 100644 index c867997..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/ViewController.m" +++ /dev/null @@ -1,228 +0,0 @@ -// -// ViewController.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - -#define isIOS(version) ([[UIDevice currentDevice].systemVersion floatValue] >= version) - - -@interface ViewController () -{ - CLLocation *_lastLocation; -} -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - - -@end - -@implementation ViewController - -#pragma mark - 鎳掑姞杞 - -/** - * 浣嶇疆绠$悊鑰 鎳掑姞杞芥柟娉 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - - /** ios8.0+瀹氫綅閫傞厤 */ - if (isIOS(8.0)) { - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 榛樿鎯呭喌鍙兘鍦ㄥ墠鍙拌幏鍙栫敤鎴蜂綅缃俊鎭 - // 濡傛灉鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 闇瑕佸嬀閫夊悗鍙版ā寮, 浣嗘槸, 褰揂PP鎺ㄥ埌鍚庡彴鏃, 浼氬嚭鐜颁竴涓摑鏉, 涓嶆柇鎻愰啋鐢ㄦ埛 -// [_locationM requestWhenInUseAuthorization]; - - // 濡傛灉瀹炲湪iOS9.0涔嬪悗, 姝ゆ椂濡傛灉鍦ㄥ墠鍙板畾浣嶆巿鏉冩儏鍐典笅鍘, 鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 涓嶆瑕佸嬀閫夊悗鍙版ā寮, 杩樿璁剧疆浠ヤ笅灞炴т负yes - // 鎯宠鎵ц杩欎釜鏂规硶, 涓瀹氳娉ㄦ剰, 闇瑕佸嬀閫夊悗鍙版ā寮弆ocation updates, 濡傛灉娌℃湁鍕鹃 ,鍚庢灉鑷礋 -// if (isIOS(9.0)) -// { -// _locationM.allowsBackgroundLocationUpdates = YES; -// } - - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉 - // 濡傛灉褰撳墠鐨勬巿鏉冪姸鎬佹槸鐢ㄦ埛涓洪夋嫨鐘舵, 閭d箞杩欎釜鏂规硶鎵嶄細鏈夋晥 - // 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴风殑浣嶇疆淇℃伅, 鑰屼笖涓嶄細鍑虹幇钃濇潯, 鏍规槸鍚﹀嬀閫変簡鍚庡彴妯″紡location udpates娌℃湁鍏崇郴 - [_locationM requestAlwaysAuthorization]; - } - - // 2涓傞厤鏂规 -// if ([_locationM respondsToSelector:@selector(requestAlwaysAuthorization)]) { -// [_locationM requestAlwaysAuthorization]; -// } - - } - return _locationM; -} - - - --(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - [self.locationM startUpdatingLocation]; - - - // 鍗曟瀹氫綅璇锋眰 - /** - * - kCLLocationAccuracyBestForNavigation - kCLLocationAccuracyBest; - kCLLocationAccuracyNearestTenMeters; - kCLLocationAccuracyHundredMeters; - kCLLocationAccuracyKilometer; - kCLLocationAccuracyThreeKilometers; - */ - // 濡傛灉鍦ㄦ湁鏁堟椂闂村唴, 瀹氫綅鍒扮簿纭害鏈楂樼殑浣嶇疆鏁版嵁,灏辩洿鎺ラ氳繃浠g悊鍛婅瘔鎴戜滑, 濡傛灉宸茬粡瓒呮椂, 閭e氨鎶婂綋鍓嶅凡缁忓畾浣嶅埌鐨勪綅缃俊鎭氳繃浠g悊鍛婅瘔鎴戜滑 - // 娉ㄦ剰浜嬮」: 1. 涓嶈兘涓巗tartUpdatelocation 2. 浠g悊蹇呴』瀹炵幇瀹氫綅澶辫触鐨勬柟娉 -// [self.locationM requestLocation]; -} - - - -#pragma mark - CLLocationManagerDelegate -/** - * 瀹氫綅鍒颁箣鍚庤皟鐢 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param locations 浣嶇疆鏁扮粍 - */ --(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - - // locations: 鎸夋椂闂村厛鍚庨『搴忔帓搴 - /** - * coordinate : 缁忕含搴 - * altitude : 娴锋嫈 - * horizontalAccuracy : 姘村钩绮剧‘搴, 濡傛灉鏄礋鏁, 灏变唬琛ㄨ繖涓猯ocation浣嶇疆鏃犳晥 - * verticalAccuracy : 鍨傜洿绮剧‘搴, 濡傛灉鏄礋鏁, 灏变唬琛ㄦ捣鎷旀病鏈夌敤 - * course : 鑸悜 - * 0.0 - 359.9 degrees, 0 being true North - * speed : 閫熷害 - * distanceFromLocation : 璁$畻涓や釜鍧愭爣涔嬮棿鐨勭墿鐞嗙洿绾胯窛绂 - */ - - CLLocation *loc = [locations lastObject]; - if (loc.horizontalAccuracy < 0) { - return; - } - - // 鍦烘櫙婕旂ず - // >鍦烘櫙婕旂ず:鎵撳嵃褰撳墠鐢ㄦ埛鐨勮璧版柟鍚,鍋忕瑙掑害浠ュ強瀵瑰簲鐨勮璧拌窛绂, - // 渚嬪:鈥濆寳鍋忎笢 30搴 鏂瑰悜,绉诲姩浜 8 绫斥 - - // 1. 琛岃蛋鏂瑰悜(鍖楀亸涓, 涓滃亸鍗) - NSArray *angleStrArr = @[@"鍖楀亸涓", @"涓滃亸鍗", @"鍗楀亸瑗", @"瑗垮亸鍖"]; - NSInteger index = (NSInteger)loc.course / 90; - NSString *angStr = angleStrArr[index]; - - // 2. 鍋忕瑙掑害(30) - NSInteger angle = (NSInteger)loc.course % 90; - - if (angle == 0) - { - // "涓" - angStr = [@"姝" stringByAppendingString:[angStr substringToIndex:1]]; - } - - - // 3. 琛岃蛋璺濈 - - CLLocationDistance distance = 0; - if (_lastLocation) { - distance = [loc distanceFromLocation:_lastLocation]; - } - _lastLocation = loc; - - // 4. 鎷间覆鎵撳嵃 - // 渚嬪:鈥濆寳鍋忎笢 30搴 鏂瑰悜,绉诲姩浜 8 绫斥 - NSString *notice; - if (angle == 0) { - notice = [NSString stringWithFormat:@"%@鏂瑰悜, 琛岃蛋浜%f绫", angStr, distance]; - }else - { - notice = [NSString stringWithFormat:@"%@%zd搴︽柟鍚, 琛岃蛋浜%f绫", angStr,angle, distance]; - } - - NSLog(@"%@", notice); - - - -// NSLog(@"瀹氫綅鍒颁簡---%@", loc); -} - - -/** - * 褰撳墠鐨勬巿鏉冪姸鎬佸彂鐢熸敼鍙樻椂璋冪敤 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param status 鎺堟潈鐘舵 - */ --(void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - switch (status) { - case kCLAuthorizationStatusNotDetermined: - { - NSLog(@"鐢ㄦ埛娌℃湁鍐冲畾"); - break; - } - // 绯荤粺棰勭暀瀛楁, 鏆傛椂娌℃湁鐢 - case kCLAuthorizationStatusRestricted: - { - NSLog(@"鍙楅檺鍒"); - break; - } - case kCLAuthorizationStatusDenied: - { - - // 鍒ゆ柇鏄惁鏀寔瀹氫綅, 鎴栬呭畾浣嶆湇鍔℃槸鍚﹀紑鍚 - if ([CLLocationManager locationServicesEnabled]) - { - NSLog(@"鐪熸琚嫆缁"); - // iOS8.0- , 鎴浘鎻愰啋鐢ㄦ埛鏁翠釜鎿嶄綔娴佺▼ - // iO8.0+, 鐩存帴璺宠浆鍒拌缃晫闈, 鏍稿績浠g爜 - // 寮规, 璁╃敤鎴烽夋嫨涔嬪悗鍐嶈烦杞 - NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString]; - if ([[UIApplication sharedApplication] canOpenURL:url]) { - [[UIApplication sharedApplication] openURL:url]; - } - }else - { - NSLog(@"瀹氫綅鏈嶅姟鍏抽棴"); - - } - break; - } - case kCLAuthorizationStatusAuthorizedAlways: - { - NSLog(@"鍓嶅悗鍙板畾浣嶆巿鏉"); - break; - } - case kCLAuthorizationStatusAuthorizedWhenInUse: - { - NSLog(@"鍓嶅彴瀹氫綅鎺堟潈"); - break; - } - - - default: - break; - } -} - --(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error -{ - NSLog(@"瀹氫綅澶辫触"); -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" deleted file mode 100644 index 8c6d933..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛 -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" deleted file mode 100644 index 06ac7ba..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/Info.plist" +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - com.520.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" deleted file mode 100644 index fd8b78f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/02-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\357\274\210iOS8.0+\351\200\202\351\205\215\357\274\211Tests/_2____CoreLocation___________iOS8_0____Tests.m" +++ /dev/null @@ -1,40 +0,0 @@ -// -// _2____CoreLocation___________iOS8_0____Tests.m -// 02-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶏紙iOS8.0+閫傞厤锛塗ests -// -// Created by 1 on 15/12/21. -// Copyright (c) 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import - -@interface _2____CoreLocation___________iOS8_0____Tests : XCTestCase - -@end - -@implementation _2____CoreLocation___________iOS8_0____Tests - -- (void)setUp { - [super setUp]; - // Put setup code here. This method is called before the invocation of each test method in the class. -} - -- (void)tearDown { - // Put teardown code here. This method is called after the invocation of each test method in the class. - [super tearDown]; -} - -- (void)testExample { - // This is an example of a functional test case. - XCTAssert(YES, @"Pass"); -} - -- (void)testPerformanceExample { - // This is an example of a performance test case. - [self measureBlock:^{ - // Put the code you want to measure the time of here. - }]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.pbxproj" deleted file mode 100644 index d66b972..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,319 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 63EAD2A51C27AD37000357EC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 63EAD2A41C27AD37000357EC /* main.m */; }; - 63EAD2A81C27AD37000357EC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 63EAD2A71C27AD37000357EC /* AppDelegate.m */; }; - 63EAD2AB1C27AD37000357EC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 63EAD2AA1C27AD37000357EC /* ViewController.m */; }; - 63EAD2AE1C27AD37000357EC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63EAD2AC1C27AD37000357EC /* Main.storyboard */; }; - 63EAD2B01C27AD37000357EC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 63EAD2AF1C27AD37000357EC /* Assets.xcassets */; }; - 63EAD2B31C27AD37000357EC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63EAD2B11C27AD37000357EC /* LaunchScreen.storyboard */; }; - 63EAD2BB1C27AD71000357EC /* bg_compasspointer.png in Resources */ = {isa = PBXBuildFile; fileRef = 63EAD2BA1C27AD71000357EC /* bg_compasspointer.png */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 63EAD2A01C27AD37000357EC /* 05-鎸囧崡閽.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "05-鎸囧崡閽.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 63EAD2A41C27AD37000357EC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 63EAD2A61C27AD37000357EC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 63EAD2A71C27AD37000357EC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 63EAD2A91C27AD37000357EC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 63EAD2AA1C27AD37000357EC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 63EAD2AD1C27AD37000357EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 63EAD2AF1C27AD37000357EC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 63EAD2B21C27AD37000357EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 63EAD2B41C27AD37000357EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 63EAD2BA1C27AD71000357EC /* bg_compasspointer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bg_compasspointer.png; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 63EAD29D1C27AD37000357EC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 63EAD2971C27AD37000357EC = { - isa = PBXGroup; - children = ( - 63EAD2A21C27AD37000357EC /* 05-鎸囧崡閽 */, - 63EAD2A11C27AD37000357EC /* Products */, - ); - sourceTree = ""; - }; - 63EAD2A11C27AD37000357EC /* Products */ = { - isa = PBXGroup; - children = ( - 63EAD2A01C27AD37000357EC /* 05-鎸囧崡閽.app */, - ); - name = Products; - sourceTree = ""; - }; - 63EAD2A21C27AD37000357EC /* 05-鎸囧崡閽 */ = { - isa = PBXGroup; - children = ( - 63EAD2A61C27AD37000357EC /* AppDelegate.h */, - 63EAD2A71C27AD37000357EC /* AppDelegate.m */, - 63EAD2A91C27AD37000357EC /* ViewController.h */, - 63EAD2AA1C27AD37000357EC /* ViewController.m */, - 63EAD2AC1C27AD37000357EC /* Main.storyboard */, - 63EAD2AF1C27AD37000357EC /* Assets.xcassets */, - 63EAD2B11C27AD37000357EC /* LaunchScreen.storyboard */, - 63EAD2B41C27AD37000357EC /* Info.plist */, - 63EAD2A31C27AD37000357EC /* Supporting Files */, - ); - path = "05-鎸囧崡閽"; - sourceTree = ""; - }; - 63EAD2A31C27AD37000357EC /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 63EAD2BA1C27AD71000357EC /* bg_compasspointer.png */, - 63EAD2A41C27AD37000357EC /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 63EAD29F1C27AD37000357EC /* 05-鎸囧崡閽 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 63EAD2B71C27AD37000357EC /* Build configuration list for PBXNativeTarget "05-鎸囧崡閽" */; - buildPhases = ( - 63EAD29C1C27AD37000357EC /* Sources */, - 63EAD29D1C27AD37000357EC /* Frameworks */, - 63EAD29E1C27AD37000357EC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "05-鎸囧崡閽"; - productName = "05-鎸囧崡閽"; - productReference = 63EAD2A01C27AD37000357EC /* 05-鎸囧崡閽.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 63EAD2981C27AD37000357EC /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 63EAD29F1C27AD37000357EC = { - CreatedOnToolsVersion = 7.1.1; - DevelopmentTeam = 4JYX4FXJAX; - }; - }; - }; - buildConfigurationList = 63EAD29B1C27AD37000357EC /* Build configuration list for PBXProject "05-鎸囧崡閽" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 63EAD2971C27AD37000357EC; - productRefGroup = 63EAD2A11C27AD37000357EC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 63EAD29F1C27AD37000357EC /* 05-鎸囧崡閽 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 63EAD29E1C27AD37000357EC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 63EAD2B31C27AD37000357EC /* LaunchScreen.storyboard in Resources */, - 63EAD2B01C27AD37000357EC /* Assets.xcassets in Resources */, - 63EAD2AE1C27AD37000357EC /* Main.storyboard in Resources */, - 63EAD2BB1C27AD71000357EC /* bg_compasspointer.png in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 63EAD29C1C27AD37000357EC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 63EAD2AB1C27AD37000357EC /* ViewController.m in Sources */, - 63EAD2A81C27AD37000357EC /* AppDelegate.m in Sources */, - 63EAD2A51C27AD37000357EC /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 63EAD2AC1C27AD37000357EC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 63EAD2AD1C27AD37000357EC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 63EAD2B11C27AD37000357EC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 63EAD2B21C27AD37000357EC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 63EAD2B51C27AD37000357EC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 63EAD2B61C27AD37000357EC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 63EAD2B81C27AD37000357EC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = "05-鎸囧崡閽/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.520it.compass; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE = ""; - }; - name = Debug; - }; - 63EAD2B91C27AD37000357EC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = "05-鎸囧崡閽/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.520it.compass; - PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE = ""; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 63EAD29B1C27AD37000357EC /* Build configuration list for PBXProject "05-鎸囧崡閽" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 63EAD2B51C27AD37000357EC /* Debug */, - 63EAD2B61C27AD37000357EC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 63EAD2B71C27AD37000357EC /* Build configuration list for PBXNativeTarget "05-鎸囧崡閽" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 63EAD2B81C27AD37000357EC /* Debug */, - 63EAD2B91C27AD37000357EC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 63EAD2981C27AD37000357EC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 698619a..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.h" deleted file mode 100644 index 4d2cb08..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 05-鎸囧崡閽 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.m" deleted file mode 100644 index d194f44..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 05-鎸囧崡閽 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/Main.storyboard" deleted file mode 100644 index 32fdf96..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Info.plist" deleted file mode 100644 index 40c6215..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/Info.plist" +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.h" deleted file mode 100644 index 9e76af4..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 05-鎸囧崡閽 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.m" deleted file mode 100644 index b5d64f8..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/ViewController.m" +++ /dev/null @@ -1,86 +0,0 @@ -// -// ViewController.m -// 05-鎸囧崡閽 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import -@interface ViewController () - -@property (weak, nonatomic) IBOutlet UIImageView *compassView; - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - - -@end - -@implementation ViewController - - -/** - * 浣嶇疆绠$悊鎳掑姞杞芥柟娉 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - } - return _locationM; -} - - -- (void)viewDidLoad { - [super viewDidLoad]; - // 0. 鍒ゆ柇褰撳墠纾佸姏璁′紶鎰熷櫒鏄惁鍙敤 - if (![CLLocationManager headingAvailable]) { - return; - } - // 1. 鑾峰彇褰撳墠璁惧鏈濆悜 - [self.locationM startUpdatingHeading]; - - - -} - - - - -#pragma mark - CLLocationManagerDelegate -/** - * 褰撹幏鍙栧埌璁惧鏈濆悜鏃 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param newHeading 澶撮儴淇℃伅 - */ --(void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading -{ - if (newHeading.headingAccuracy < 0) - { - return; - } - - // 1. 鑾峰彇璁惧璺濈纾佸寳鏂瑰悜鐨勮搴(0.0---359.9) - CLLocationDirection angle = newHeading.magneticHeading; - - // 1.1 瑙掑害---> 寮у害 - CGFloat hudu = angle / 180.0 * M_PI; - - // 2. 鏃嬭浆鍥剧墖(寮у害) - [UIView animateWithDuration:0.5 animations:^{ - self.compassView.transform = CGAffineTransformMakeRotation(-hudu); - }]; - - -} - - - - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/bg_compasspointer.png" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/bg_compasspointer.png" deleted file mode 100755 index 1c7858a..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/bg_compasspointer.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/main.m" deleted file mode 100644 index f1b2810..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/05-\346\214\207\345\215\227\351\222\210/05-\346\214\207\345\215\227\351\222\210/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 05-鎸囧崡閽 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" deleted file mode 100644 index 6bf50a4..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,307 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 631ED5081C27D4F300988F57 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5071C27D4F300988F57 /* main.m */; }; - 631ED50B1C27D4F300988F57 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED50A1C27D4F300988F57 /* AppDelegate.m */; }; - 631ED50E1C27D4F300988F57 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED50D1C27D4F300988F57 /* ViewController.m */; }; - 631ED5111C27D4F300988F57 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED50F1C27D4F300988F57 /* Main.storyboard */; }; - 631ED5131C27D4F300988F57 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5121C27D4F300988F57 /* Assets.xcassets */; }; - 631ED5161C27D4F300988F57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5141C27D4F300988F57 /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 631ED5031C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 631ED5071C27D4F300988F57 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 631ED5091C27D4F300988F57 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 631ED50A1C27D4F300988F57 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 631ED50C1C27D4F300988F57 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 631ED50D1C27D4F300988F57 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 631ED5101C27D4F300988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 631ED5121C27D4F300988F57 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 631ED5151C27D4F300988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 631ED5171C27D4F300988F57 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 631ED5001C27D4F300988F57 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 631ED4FA1C27D4F300988F57 = { - isa = PBXGroup; - children = ( - 631ED5051C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 */, - 631ED5041C27D4F300988F57 /* Products */, - ); - sourceTree = ""; - }; - 631ED5041C27D4F300988F57 /* Products */ = { - isa = PBXGroup; - children = ( - 631ED5031C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚.app */, - ); - name = Products; - sourceTree = ""; - }; - 631ED5051C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 */ = { - isa = PBXGroup; - children = ( - 631ED5091C27D4F300988F57 /* AppDelegate.h */, - 631ED50A1C27D4F300988F57 /* AppDelegate.m */, - 631ED50C1C27D4F300988F57 /* ViewController.h */, - 631ED50D1C27D4F300988F57 /* ViewController.m */, - 631ED50F1C27D4F300988F57 /* Main.storyboard */, - 631ED5121C27D4F300988F57 /* Assets.xcassets */, - 631ED5141C27D4F300988F57 /* LaunchScreen.storyboard */, - 631ED5171C27D4F300988F57 /* Info.plist */, - 631ED5061C27D4F300988F57 /* Supporting Files */, - ); - path = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚"; - sourceTree = ""; - }; - 631ED5061C27D4F300988F57 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 631ED5071C27D4F300988F57 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 631ED5021C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 631ED51A1C27D4F300988F57 /* Build configuration list for PBXNativeTarget "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚" */; - buildPhases = ( - 631ED4FF1C27D4F300988F57 /* Sources */, - 631ED5001C27D4F300988F57 /* Frameworks */, - 631ED5011C27D4F300988F57 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚"; - productName = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚"; - productReference = 631ED5031C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 631ED4FB1C27D4F300988F57 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 631ED5021C27D4F300988F57 = { - CreatedOnToolsVersion = 7.1.1; - }; - }; - }; - buildConfigurationList = 631ED4FE1C27D4F300988F57 /* Build configuration list for PBXProject "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 631ED4FA1C27D4F300988F57; - productRefGroup = 631ED5041C27D4F300988F57 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 631ED5021C27D4F300988F57 /* 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 631ED5011C27D4F300988F57 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED5161C27D4F300988F57 /* LaunchScreen.storyboard in Resources */, - 631ED5131C27D4F300988F57 /* Assets.xcassets in Resources */, - 631ED5111C27D4F300988F57 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 631ED4FF1C27D4F300988F57 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED50E1C27D4F300988F57 /* ViewController.m in Sources */, - 631ED50B1C27D4F300988F57 /* AppDelegate.m in Sources */, - 631ED5081C27D4F300988F57 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 631ED50F1C27D4F300988F57 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5101C27D4F300988F57 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 631ED5141C27D4F300988F57 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5151C27D4F300988F57 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 631ED5181C27D4F300988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 631ED5191C27D4F300988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 631ED51B1C27D4F300988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-6----CoreLocation------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 631ED51C1C27D4F300988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-6----CoreLocation------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 631ED4FE1C27D4F300988F57 /* Build configuration list for PBXProject "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED5181C27D4F300988F57 /* Debug */, - 631ED5191C27D4F300988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 631ED51A1C27D4F300988F57 /* Build configuration list for PBXNativeTarget "06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED51B1C27D4F300988F57 /* Debug */, - 631ED51C1C27D4F300988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 631ED4FB1C27D4F300988F57 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 7f03f21..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.h" deleted file mode 100644 index 6999ec0..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.m" deleted file mode 100644 index 1011d03..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" deleted file mode 100644 index 1581152..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" deleted file mode 100644 index cacbe3b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationAlwaysUsageDescription - 鍖哄煙鐩戝惉 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.h" deleted file mode 100644 index cb5516d..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.m" deleted file mode 100644 index ba4c605..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/ViewController.m" +++ /dev/null @@ -1,125 +0,0 @@ -// -// ViewController.m -// 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - -@interface ViewController () - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - -@property (weak, nonatomic) IBOutlet UILabel *noticeLabel; - -@end - -@implementation ViewController - -/** - * 浣嶇疆绠$悊鑰呮噿鍔犺浇鏂规硶 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - - // 涓诲姩璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉 - if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) - { - [_locationM requestAlwaysAuthorization]; - } - } - return _locationM; -} - - - -- (void)viewDidLoad { - [super viewDidLoad]; - - if (![CLLocationManager isMonitoringAvailableForClass:[CLCircularRegion class]]) { - NSLog(@"璇ュ尯鍩熶笉鑳界洃鍚"); - return; - } - - - // -1. 鍒涘缓涓涓尯鍩熶腑蹇, 鍗婂緞 - CLLocationCoordinate2D center = CLLocationCoordinate2DMake(21.123, 121.234); - CLLocationDistance distance = 1000; - // -1.1 鍒ゅ畾鐩戝惉鐨勫尯鍩熷崐寰勬槸鍚﹀湪鏈澶ц寖鍥翠箣鍐 - if (distance > self.locationM.maximumRegionMonitoringDistance) { - distance = self.locationM.maximumRegionMonitoringDistance; - } - - - // 0. 鍒涘缓涓涓尯鍩 - CLCircularRegion *region = [[CLCircularRegion alloc] initWithCenter:center radius:distance identifier:@"灏忕爜鍝ュ叓绁"]; - - // 1. 鐩戝惉鍖哄煙(鍙兘鐩戝惉杩涘叆鎴栬呯寮鍖哄煙鐨勫姩浣) - [self.locationM startMonitoringForRegion:region]; - - - // 1.2 鐩存帴鑾峰彇鏌愪釜鍖哄煙鐨勫綋鍓嶇姸鎬 - [self.locationM requestStateForRegion:region]; - - -} - - -#pragma mark - CLLocationManagerDelegate -/** - * 杩涘叆鎸囧畾鍖哄煙鏃惰皟鐢 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param region 鍖哄煙 - */ --(void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region -{ - - NSLog(@"杩涘叆鍖哄煙---%@",region.identifier); - self.noticeLabel.text = @"灏忕爜鍝ユ杩庝綘, 缁欎綘鎶鏈"; -} -/** - * 绂诲紑鎸囧畾鍖哄煙鏃惰皟鐢 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param region 鍖哄煙 - */ --(void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region -{ - NSLog(@"绂诲紑鍖哄煙---%@",region.identifier); - self.noticeLabel.text = @"娆㈣繋涓嬫鍐嶆潵澶嶈, 鎵撴浣"; -} - - -/** - * 褰撹姹傛煇涓尯鍩熺姸鎬佹椂璋冪敤 - * - * @param manager 浣嶇疆绠$悊鑰 - * @param state 鐘舵 - * @param region 鍖哄煙 - */ --(void)locationManager:(CLLocationManager *)manager didDetermineState:(CLRegionState)state forRegion:(CLRegion *)region -{ - /** - * CLRegionStateUnknown, - CLRegionStateInside, - CLRegionStateOutside - */ - if (state == CLRegionStateInside) { - self.noticeLabel.text = @"灏忕爜鍝ユ杩庝綘, 缁欎綘鎶鏈"; - }else if (state == CLRegionStateOutside) - { - self.noticeLabel.text = @"娆㈣繋涓嬫鍐嶆潵澶嶈, 鎵撴浣"; - } -} - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/main.m" deleted file mode 100644 index f22a3c3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\214\272\345\237\237\347\233\221\345\220\254/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 06-浜嗚В-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿尯鍩熺洃鍚 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" deleted file mode 100644 index 8ff3419..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,307 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 631ED52B1C27DA1B00988F57 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED52A1C27DA1B00988F57 /* main.m */; }; - 631ED52E1C27DA1B00988F57 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED52D1C27DA1B00988F57 /* AppDelegate.m */; }; - 631ED5311C27DA1B00988F57 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5301C27DA1B00988F57 /* ViewController.m */; }; - 631ED5341C27DA1B00988F57 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5321C27DA1B00988F57 /* Main.storyboard */; }; - 631ED5361C27DA1B00988F57 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5351C27DA1B00988F57 /* Assets.xcassets */; }; - 631ED5391C27DA1B00988F57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5371C27DA1B00988F57 /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 631ED5261C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 631ED52A1C27DA1B00988F57 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 631ED52C1C27DA1B00988F57 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 631ED52D1C27DA1B00988F57 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 631ED52F1C27DA1B00988F57 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 631ED5301C27DA1B00988F57 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 631ED5331C27DA1B00988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 631ED5351C27DA1B00988F57 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 631ED5381C27DA1B00988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 631ED53A1C27DA1B00988F57 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 631ED5231C27DA1B00988F57 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 631ED51D1C27DA1B00988F57 = { - isa = PBXGroup; - children = ( - 631ED5281C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 */, - 631ED5271C27DA1B00988F57 /* Products */, - ); - sourceTree = ""; - }; - 631ED5271C27DA1B00988F57 /* Products */ = { - isa = PBXGroup; - children = ( - 631ED5261C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜.app */, - ); - name = Products; - sourceTree = ""; - }; - 631ED5281C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 */ = { - isa = PBXGroup; - children = ( - 631ED52C1C27DA1B00988F57 /* AppDelegate.h */, - 631ED52D1C27DA1B00988F57 /* AppDelegate.m */, - 631ED52F1C27DA1B00988F57 /* ViewController.h */, - 631ED5301C27DA1B00988F57 /* ViewController.m */, - 631ED5321C27DA1B00988F57 /* Main.storyboard */, - 631ED5351C27DA1B00988F57 /* Assets.xcassets */, - 631ED5371C27DA1B00988F57 /* LaunchScreen.storyboard */, - 631ED53A1C27DA1B00988F57 /* Info.plist */, - 631ED5291C27DA1B00988F57 /* Supporting Files */, - ); - path = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜"; - sourceTree = ""; - }; - 631ED5291C27DA1B00988F57 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 631ED52A1C27DA1B00988F57 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 631ED5251C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 631ED53D1C27DA1B00988F57 /* Build configuration list for PBXNativeTarget "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜" */; - buildPhases = ( - 631ED5221C27DA1B00988F57 /* Sources */, - 631ED5231C27DA1B00988F57 /* Frameworks */, - 631ED5241C27DA1B00988F57 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜"; - productName = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜"; - productReference = 631ED5261C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 631ED51E1C27DA1B00988F57 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 631ED5251C27DA1B00988F57 = { - CreatedOnToolsVersion = 7.1.1; - }; - }; - }; - buildConfigurationList = 631ED5211C27DA1B00988F57 /* Build configuration list for PBXProject "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 631ED51D1C27DA1B00988F57; - productRefGroup = 631ED5271C27DA1B00988F57 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 631ED5251C27DA1B00988F57 /* 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 631ED5241C27DA1B00988F57 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED5391C27DA1B00988F57 /* LaunchScreen.storyboard in Resources */, - 631ED5361C27DA1B00988F57 /* Assets.xcassets in Resources */, - 631ED5341C27DA1B00988F57 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 631ED5221C27DA1B00988F57 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED5311C27DA1B00988F57 /* ViewController.m in Sources */, - 631ED52E1C27DA1B00988F57 /* AppDelegate.m in Sources */, - 631ED52B1C27DA1B00988F57 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 631ED5321C27DA1B00988F57 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5331C27DA1B00988F57 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 631ED5371C27DA1B00988F57 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5381C27DA1B00988F57 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 631ED53B1C27DA1B00988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 631ED53C1C27DA1B00988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 631ED53E1C27DA1B00988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-7----CoreLocation--------------07----CoreLocation---------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 631ED53F1C27DA1B00988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-7----CoreLocation--------------07----CoreLocation---------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 631ED5211C27DA1B00988F57 /* Build configuration list for PBXProject "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED53B1C27DA1B00988F57 /* Debug */, - 631ED53C1C27DA1B00988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 631ED53D1C27DA1B00988F57 /* Build configuration list for PBXNativeTarget "07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED53E1C27DA1B00988F57 /* Debug */, - 631ED53F1C27DA1B00988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 631ED51E1C27DA1B00988F57 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 5ec580b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.h" deleted file mode 100644 index 6734414..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.m" deleted file mode 100644 index 03be2d0..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" deleted file mode 100644 index 63bdaf1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" deleted file mode 100644 index 40c6215..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.h" deleted file mode 100644 index e185180..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.m" deleted file mode 100644 index fe666c1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.m" +++ /dev/null @@ -1,112 +0,0 @@ -// -// ViewController.m -// 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import - - -@interface ViewController () -@property (weak, nonatomic) IBOutlet UITextView *addressTV; -@property (weak, nonatomic) IBOutlet UITextField *latitudeTF; -@property (weak, nonatomic) IBOutlet UITextField *longitudeTF; - - -/** 鍦扮悊缂栫爜鍣*/ -@property(nonatomic ,strong) CLGeocoder *geoC; - -@end - -@implementation ViewController - - -/** - * geoC鎳掑姞杞芥柟娉 - */ -- (CLGeocoder *)geoC -{ - if (!_geoC) { - _geoC = [[CLGeocoder alloc] init]; - } - return _geoC; -} - - -/** - * 鍦扮悊缂栫爜 - * 鍦板潃---> 缁忕含搴 - */ -- (IBAction)geoCode -{ - - - NSString *addressStr = self.addressTV.text; - if ([addressStr length] == 0) { - return; - } - - [self.geoC geocodeAddressString:addressStr completionHandler:^(NSArray * _Nullable placemarks, NSError * _Nullable error) { - - if(error == nil) - { - // shengda 鐩涘ぇ 鑳滆揪 鐩涜揪 - // CLPlacemark 鍦版爣瀵硅薄 // 鎸夌収鐩稿叧鎬ф帓搴 - // location : 浣嶇疆瀵硅薄 - // name : 璇︾粏鍦板潃鍏ㄧ▼ - CLPlacemark *pl = [placemarks firstObject]; - - self.addressTV.text = pl.name; - self.latitudeTF.text = @(pl.location.coordinate.latitude).stringValue; - self.longitudeTF.text = @(pl.location.coordinate.longitude).stringValue; - - } - - }]; -} - -/** - * 鍙嶅湴鐞嗙紪鐮 - * 缁忕含搴---> 鍦板潃 - */ -- (IBAction)reverseGeoCode -{ - - // 鑾峰彇缁忕含搴 - double latitude = [self.latitudeTF.text doubleValue]; - double longitude = [self.longitudeTF.text doubleValue]; - - CLLocation *loc = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude]; - - - // 鍙嶅湴鐞嗙紪鐮 - [self.geoC reverseGeocodeLocation:loc completionHandler:^(NSArray * _Nullable placemarks, NSError * _Nullable error) - { - if(error == nil) - { - // shengda 鐩涘ぇ 鑳滆揪 鐩涜揪 - // CLPlacemark 鍦版爣瀵硅薄 // 鎸夌収鐩稿叧鎬ф帓搴 - // location : 浣嶇疆瀵硅薄 - // name : 璇︾粏鍦板潃鍏ㄧ▼ - CLPlacemark *pl = [placemarks firstObject]; - - self.addressTV.text = pl.name; - self.latitudeTF.text = @(pl.location.coordinate.latitude).stringValue; - self.longitudeTF.text = @(pl.location.coordinate.longitude).stringValue; - - } - - }]; - - - -} - - - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/main.m" deleted file mode 100644 index 55c3828..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\22607-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224(\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂07-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ(鍙)鍦扮悊缂栫爜 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.pbxproj" deleted file mode 100644 index 54efca1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,331 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 631ED54E1C27E30900988F57 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED54D1C27E30900988F57 /* main.m */; }; - 631ED5511C27E30900988F57 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5501C27E30900988F57 /* AppDelegate.m */; }; - 631ED5541C27E30900988F57 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5531C27E30900988F57 /* ViewController.m */; }; - 631ED5571C27E30900988F57 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5551C27E30900988F57 /* Main.storyboard */; }; - 631ED5591C27E30900988F57 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5581C27E30900988F57 /* Assets.xcassets */; }; - 631ED55C1C27E30900988F57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED55A1C27E30900988F57 /* LaunchScreen.storyboard */; }; - 631ED56A1C27E31C00988F57 /* INTULocationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5661C27E31C00988F57 /* INTULocationManager.m */; }; - 631ED56B1C27E31C00988F57 /* INTULocationRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5681C27E31C00988F57 /* INTULocationRequest.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 631ED5491C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 631ED54D1C27E30900988F57 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 631ED54F1C27E30900988F57 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 631ED5501C27E30900988F57 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 631ED5521C27E30900988F57 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 631ED5531C27E30900988F57 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 631ED5561C27E30900988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 631ED5581C27E30900988F57 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 631ED55B1C27E30900988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 631ED55D1C27E30900988F57 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 631ED5641C27E31C00988F57 /* INTULocationManager+Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "INTULocationManager+Internal.h"; sourceTree = ""; }; - 631ED5651C27E31C00988F57 /* INTULocationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationManager.h; sourceTree = ""; }; - 631ED5661C27E31C00988F57 /* INTULocationManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = INTULocationManager.m; sourceTree = ""; }; - 631ED5671C27E31C00988F57 /* INTULocationRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationRequest.h; sourceTree = ""; }; - 631ED5681C27E31C00988F57 /* INTULocationRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = INTULocationRequest.m; sourceTree = ""; }; - 631ED5691C27E31C00988F57 /* INTULocationRequestDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationRequestDefines.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 631ED5461C27E30900988F57 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 631ED5401C27E30900988F57 = { - isa = PBXGroup; - children = ( - 631ED54B1C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 */, - 631ED54A1C27E30900988F57 /* Products */, - ); - sourceTree = ""; - }; - 631ED54A1C27E30900988F57 /* Products */ = { - isa = PBXGroup; - children = ( - 631ED5491C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋.app */, - ); - name = Products; - sourceTree = ""; - }; - 631ED54B1C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 */ = { - isa = PBXGroup; - children = ( - 631ED5631C27E31C00988F57 /* INTULocationManager */, - 631ED54F1C27E30900988F57 /* AppDelegate.h */, - 631ED5501C27E30900988F57 /* AppDelegate.m */, - 631ED5521C27E30900988F57 /* ViewController.h */, - 631ED5531C27E30900988F57 /* ViewController.m */, - 631ED5551C27E30900988F57 /* Main.storyboard */, - 631ED5581C27E30900988F57 /* Assets.xcassets */, - 631ED55A1C27E30900988F57 /* LaunchScreen.storyboard */, - 631ED55D1C27E30900988F57 /* Info.plist */, - 631ED54C1C27E30900988F57 /* Supporting Files */, - ); - path = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋"; - sourceTree = ""; - }; - 631ED54C1C27E30900988F57 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 631ED54D1C27E30900988F57 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; - 631ED5631C27E31C00988F57 /* INTULocationManager */ = { - isa = PBXGroup; - children = ( - 631ED5641C27E31C00988F57 /* INTULocationManager+Internal.h */, - 631ED5651C27E31C00988F57 /* INTULocationManager.h */, - 631ED5661C27E31C00988F57 /* INTULocationManager.m */, - 631ED5671C27E31C00988F57 /* INTULocationRequest.h */, - 631ED5681C27E31C00988F57 /* INTULocationRequest.m */, - 631ED5691C27E31C00988F57 /* INTULocationRequestDefines.h */, - ); - path = INTULocationManager; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 631ED5481C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 631ED5601C27E30900988F57 /* Build configuration list for PBXNativeTarget "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋" */; - buildPhases = ( - 631ED5451C27E30900988F57 /* Sources */, - 631ED5461C27E30900988F57 /* Frameworks */, - 631ED5471C27E30900988F57 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋"; - productName = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋"; - productReference = 631ED5491C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 631ED5411C27E30900988F57 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 631ED5481C27E30900988F57 = { - CreatedOnToolsVersion = 7.1.1; - }; - }; - }; - buildConfigurationList = 631ED5441C27E30900988F57 /* Build configuration list for PBXProject "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 631ED5401C27E30900988F57; - productRefGroup = 631ED54A1C27E30900988F57 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 631ED5481C27E30900988F57 /* 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 631ED5471C27E30900988F57 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED55C1C27E30900988F57 /* LaunchScreen.storyboard in Resources */, - 631ED5591C27E30900988F57 /* Assets.xcassets in Resources */, - 631ED5571C27E30900988F57 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 631ED5451C27E30900988F57 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED56A1C27E31C00988F57 /* INTULocationManager.m in Sources */, - 631ED5541C27E30900988F57 /* ViewController.m in Sources */, - 631ED5511C27E30900988F57 /* AppDelegate.m in Sources */, - 631ED56B1C27E31C00988F57 /* INTULocationRequest.m in Sources */, - 631ED54E1C27E30900988F57 /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 631ED5551C27E30900988F57 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5561C27E30900988F57 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 631ED55A1C27E30900988F57 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED55B1C27E30900988F57 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 631ED55E1C27E30900988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 631ED55F1C27E30900988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 631ED5611C27E30900988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-8----CoreLocation----------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 631ED5621C27E30900988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-8----CoreLocation----------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 631ED5441C27E30900988F57 /* Build configuration list for PBXProject "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED55E1C27E30900988F57 /* Debug */, - 631ED55F1C27E30900988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 631ED5601C27E30900988F57 /* Build configuration list for PBXNativeTarget "08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED5611C27E30900988F57 /* Debug */, - 631ED5621C27E30900988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 631ED5411C27E30900988F57 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 1a28c5c..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.h" deleted file mode 100644 index dd6b44f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.m" deleted file mode 100644 index 9b5a451..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager+Internal.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager+Internal.h" deleted file mode 100755 index 6e7a742..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager+Internal.h" +++ /dev/null @@ -1,33 +0,0 @@ -// -// INTULocationManager+Internal.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationManager.h" - -/** - A category that exposes the internal (private) methods of INTULocationManager. - */ -@interface INTULocationManager (Internal) - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.h" deleted file mode 100755 index a57d429..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.h" +++ /dev/null @@ -1,130 +0,0 @@ -// -// INTULocationManager.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequestDefines.h" - -//! Project version number for INTULocationManager. -FOUNDATION_EXPORT double INTULocationManagerVersionNumber; - -//! Project version string for INTULocationManager. -FOUNDATION_EXPORT const unsigned char INTULocationManagerVersionString[]; - - -__INTU_ASSUME_NONNULL_BEGIN - -/** - An abstraction around CLLocationManager that provides a block-based asynchronous API for obtaining the device's location. - INTULocationManager automatically starts and stops system location services as needed to minimize battery drain. - */ -@interface INTULocationManager : NSObject - -/** Returns the current state of location services for this app, based on the system settings and user authorization status. */ -+ (INTULocationServicesState)locationServicesState; - -/** Returns the singleton instance of this class. */ -+ (instancetype)sharedInstance; - -/** - Asynchronously requests the current location of the device using location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param block The block to execute upon success, failure, or timeout. - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - block:(INTULocationRequestBlock)block; - -/** - Asynchronously requests the current location of the device using location services, optionally delaying the timeout countdown until the user has - responded to the dialog requesting permission for this app to access location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param delayUntilAuthorized A flag specifying whether the timeout should only take effect after the user responds to the system prompt requesting - permission for this app to access location services. If YES, the timeout countdown will not begin until after the - app receives location services permissions. If NO, the timeout countdown begins immediately when calling this method. - @param block The block to execute upon success, failure, or timeout. - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - delayUntilAuthorized:(BOOL)delayUntilAuthorized - block:(INTULocationRequestBlock)block; - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - This method instructs location services to use the highest accuracy available (which also requires the most power). - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithBlock:(INTULocationRequestBlock)block; - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - The specified desired accuracy is passed along to location services, and controls how much power is used, with higher accuracies using more power. - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param desiredAccuracy The accuracy level desired, which controls how much power is used by the device's location services. - @param block The block to execute every time an updated location is available. Note that this block runs for every update, regardless of - whether the achievedAccuracy is at least the desiredAccuracy. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - block:(INTULocationRequestBlock)block; - -/** - Creates a subscription for significant location changes that will execute the block once per change indefinitely (until canceled). - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of significant location changes to this block. - */ -- (INTULocationRequestID)subscribeToSignificantLocationChangesWithBlock:(INTULocationRequestBlock)block; - -/** Immediately forces completion of the location request with the given requestID (if it exists), and executes the original request block with the results. - For one-time location requests, this is effectively a manual timeout, and will result in the request completing with status INTULocationStatusTimedOut. - If the requestID corresponds to a subscription, then the subscription will simply be canceled. */ -- (void)forceCompleteLocationRequest:(INTULocationRequestID)requestID; - -/** Immediately cancels the location request (or subscription) with the given requestID (if it exists), without executing the original request block. */ -- (void)cancelLocationRequest:(INTULocationRequestID)requestID; - -@end - -__INTU_ASSUME_NONNULL_END diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.m" deleted file mode 100755 index a151ea3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationManager.m" +++ /dev/null @@ -1,775 +0,0 @@ -// -// INTULocationManager.m -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationManager.h" -#import "INTULocationManager+Internal.h" -#import "INTULocationRequest.h" - - -#ifndef INTU_ENABLE_LOGGING -# ifdef DEBUG -# define INTU_ENABLE_LOGGING 1 -# else -# define INTU_ENABLE_LOGGING 0 -# endif /* DEBUG */ -#endif /* INTU_ENABLE_LOGGING */ - -#if INTU_ENABLE_LOGGING -# define INTULMLog(...) -#else -# define INTULMLog(...) -#endif /* INTU_ENABLE_LOGGING */ - - -@interface INTULocationManager () - -/** The instance of CLLocationManager encapsulated by this class. */ -@property (nonatomic, strong) CLLocationManager *locationManager; -/** The most recent current location, or nil if the current location is unknown, invalid, or stale. */ -@property (nonatomic, strong) CLLocation *currentLocation; -/** Whether or not the CLLocationManager is currently monitoring significant location changes. */ -@property (nonatomic, assign) BOOL isMonitoringSignificantLocationChanges; -/** Whether or not the CLLocationManager is currently sending location updates. */ -@property (nonatomic, assign) BOOL isUpdatingLocation; -/** Whether an error occurred during the last location update. */ -@property (nonatomic, assign) BOOL updateFailed; - -// An array of active location requests in the form: -// @[ INTULocationRequest *locationRequest1, INTULocationRequest *locationRequest2, ... ] -@property (nonatomic, strong) __INTU_GENERICS(NSArray, INTULocationRequest *) *locationRequests; - -@end - - -@implementation INTULocationManager - -static id _sharedInstance; - -/** - Returns the current state of location services for this app, based on the system settings and user authorization status. - */ -+ (INTULocationServicesState)locationServicesState -{ - if ([CLLocationManager locationServicesEnabled] == NO) { - return INTULocationServicesStateDisabled; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { - return INTULocationServicesStateNotDetermined; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { - return INTULocationServicesStateDenied; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted) { - return INTULocationServicesStateRestricted; - } - - return INTULocationServicesStateAvailable; -} - -/** - Returns the singleton instance of this class. - */ -+ (instancetype)sharedInstance -{ - static dispatch_once_t _onceToken; - dispatch_once(&_onceToken, ^{ - _sharedInstance = [[self alloc] init]; - }); - return _sharedInstance; -} - -- (instancetype)init -{ - NSAssert(_sharedInstance == nil, @"Only one instance of INTULocationManager should be created. Use +[INTULocationManager sharedInstance] instead."); - self = [super init]; - if (self) { - _locationManager = [[CLLocationManager alloc] init]; - _locationManager.delegate = self; - -#ifdef __IPHONE_8_4 -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4 - /* iOS 9 requires setting allowsBackgroundLocationUpdates to YES in order to receive background location updates. - We only set it to YES if the location background mode is enabled for this app, as the documentation suggests it is a - fatal programmer error otherwise. */ - NSArray *backgroundModes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIBackgroundModes"]; - if ([backgroundModes containsObject:@"location"]) { - if ([_locationManager respondsToSelector:@selector(setAllowsBackgroundLocationUpdates:)]) { - [_locationManager setAllowsBackgroundLocationUpdates:YES]; - } - } -#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_8_4 */ -#endif /* __IPHONE_8_4 */ - - _locationRequests = @[]; - } - return self; -} - -/** - Asynchronously requests the current location of the device using location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. - If this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param block The block to be executed when the request succeeds, fails, or times out. Three parameters are passed into the block: - - The current location (the most recent one acquired, regardless of accuracy level), or nil if no valid location was acquired - - The achieved accuracy for the current location (may be less than the desired accuracy if the request failed) - - The request status (if it succeeded, or if not, why it failed) - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - block:(INTULocationRequestBlock)block -{ - return [self requestLocationWithDesiredAccuracy:desiredAccuracy - timeout:timeout - delayUntilAuthorized:NO - block:block]; -} - -/** - Asynchronously requests the current location of the device using location services, optionally waiting until the user grants the app permission - to access location services before starting the timeout countdown. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param delayUntilAuthorized A flag specifying whether the timeout should only take effect after the user responds to the system prompt requesting - permission for this app to access location services. If YES, the timeout countdown will not begin until after the - app receives location services permissions. If NO, the timeout countdown begins immediately when calling this method. - @param block The block to be executed when the request succeeds, fails, or times out. Three parameters are passed into the block: - - The current location (the most recent one acquired, regardless of accuracy level), or nil if no valid location was acquired - - The achieved accuracy for the current location (may be less than the desired accuracy if the request failed) - - The request status (if it succeeded, or if not, why it failed) - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - delayUntilAuthorized:(BOOL)delayUntilAuthorized - block:(INTULocationRequestBlock)block -{ - NSAssert([NSThread isMainThread], @"INTULocationManager should only be called from the main thread."); - - if (desiredAccuracy == INTULocationAccuracyNone) { - NSAssert(desiredAccuracy != INTULocationAccuracyNone, @"INTULocationAccuracyNone is not a valid desired accuracy."); - desiredAccuracy = INTULocationAccuracyCity; // default to the lowest valid desired accuracy - } - - INTULocationRequest *locationRequest = [[INTULocationRequest alloc] initWithType:INTULocationRequestTypeSingle]; - locationRequest.delegate = self; - locationRequest.desiredAccuracy = desiredAccuracy; - locationRequest.timeout = timeout; - locationRequest.block = block; - - BOOL deferTimeout = delayUntilAuthorized && ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined); - if (!deferTimeout) { - [locationRequest startTimeoutTimerIfNeeded]; - } - - [self addLocationRequest:locationRequest]; - - return locationRequest.requestID; -} - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - This method instructs location services to use the highest accuracy available (which also requires the most power). - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithBlock:(INTULocationRequestBlock)block -{ - return [self subscribeToLocationUpdatesWithDesiredAccuracy:INTULocationAccuracyRoom - block:block]; -} - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - The specified desired accuracy is passed along to location services, and controls how much power is used, with higher accuracies using more power. - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param desiredAccuracy The accuracy level desired, which controls how much power is used by the device's location services. - @param block The block to execute every time an updated location is available. Note that this block runs for every update, regardless of - whether the achievedAccuracy is at least the desiredAccuracy. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - block:(INTULocationRequestBlock)block -{ - NSAssert([NSThread isMainThread], @"INTULocationManager should only be called from the main thread."); - - INTULocationRequest *locationRequest = [[INTULocationRequest alloc] initWithType:INTULocationRequestTypeSubscription]; - locationRequest.desiredAccuracy = desiredAccuracy; - locationRequest.block = block; - - [self addLocationRequest:locationRequest]; - - return locationRequest.requestID; -} - -/** - Creates a subscription for significant location changes that will execute the block once per change indefinitely (until canceled). - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of significant location changes to this block. - */ -- (INTULocationRequestID)subscribeToSignificantLocationChangesWithBlock:(INTULocationRequestBlock)block -{ - NSAssert([NSThread isMainThread], @"INTULocationManager should only be called from the main thread."); - - INTULocationRequest *locationRequest = [[INTULocationRequest alloc] initWithType:INTULocationRequestTypeSignificantChanges]; - locationRequest.block = block; - - [self addLocationRequest:locationRequest]; - - return locationRequest.requestID; -} - -/** - Immediately forces completion of the location request with the given requestID (if it exists), and executes the original request block with the results. - This is effectively a manual timeout, and will result in the request completing with status INTULocationStatusTimedOut. - */ -- (void)forceCompleteLocationRequest:(INTULocationRequestID)requestID -{ - NSAssert([NSThread isMainThread], @"INTULocationManager should only be called from the main thread."); - - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.requestID == requestID) { - if (locationRequest.isRecurring) { - // Recurring requests can only be canceled - [self cancelLocationRequest:requestID]; - } else { - [locationRequest forceTimeout]; - [self completeLocationRequest:locationRequest]; - } - break; - } - } -} - -/** - Immediately cancels the location request with the given requestID (if it exists), without executing the original request block. - */ -- (void)cancelLocationRequest:(INTULocationRequestID)requestID -{ - NSAssert([NSThread isMainThread], @"INTULocationManager should only be called from the main thread."); - - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.requestID == requestID) { - [locationRequest cancel]; - INTULMLog(@"Location Request canceled with ID: %ld", (long)locationRequest.requestID); - [self removeLocationRequest:locationRequest]; - break; - } - } -} - -#pragma mark Internal methods - -/** - Adds the given location request to the array of requests, updates the maximum desired accuracy, and starts location updates if needed. - */ -- (void)addLocationRequest:(INTULocationRequest *)locationRequest -{ - INTULocationServicesState locationServicesState = [INTULocationManager locationServicesState]; - if (locationServicesState == INTULocationServicesStateDisabled || - locationServicesState == INTULocationServicesStateDenied || - locationServicesState == INTULocationServicesStateRestricted) { - // No need to add this location request, because location services are turned off device-wide, or the user has denied this app permissions to use them - [self completeLocationRequest:locationRequest]; - return; - } - - switch (locationRequest.type) { - case INTULocationRequestTypeSingle: - case INTULocationRequestTypeSubscription: - { - INTULocationAccuracy maximumDesiredAccuracy = INTULocationAccuracyNone; - // Determine the maximum desired accuracy for all existing location requests (does not include the new request we're currently adding) - for (INTULocationRequest *locationRequest in [self activeLocationRequestsExcludingType:INTULocationRequestTypeSignificantChanges]) { - if (locationRequest.desiredAccuracy > maximumDesiredAccuracy) { - maximumDesiredAccuracy = locationRequest.desiredAccuracy; - } - } - // Take the max of the maximum desired accuracy for all existing location requests and the desired accuracy of the new request we're currently adding - maximumDesiredAccuracy = MAX(locationRequest.desiredAccuracy, maximumDesiredAccuracy); - [self updateWithMaximumDesiredAccuracy:maximumDesiredAccuracy]; - - [self startUpdatingLocationIfNeeded]; - } - break; - case INTULocationRequestTypeSignificantChanges: - [self startMonitoringSignificantLocationChangesIfNeeded]; - break; - } - __INTU_GENERICS(NSMutableArray, INTULocationRequest *) *newLocationRequests = [NSMutableArray arrayWithArray:self.locationRequests]; - [newLocationRequests addObject:locationRequest]; - self.locationRequests = newLocationRequests; - INTULMLog(@"Location Request added with ID: %ld", (long)locationRequest.requestID); - - // Process all location requests now, as we may be able to immediately complete the request just added above - // if a location update was recently received (stored in self.currentLocation) that satisfies its criteria. - [self processLocationRequests]; -} - -/** - Removes a given location request from the array of requests, updates the maximum desired accuracy, and stops location updates if needed. - */ -- (void)removeLocationRequest:(INTULocationRequest *)locationRequest -{ - __INTU_GENERICS(NSMutableArray, INTULocationRequest *) *newLocationRequests = [NSMutableArray arrayWithArray:self.locationRequests]; - [newLocationRequests removeObject:locationRequest]; - self.locationRequests = newLocationRequests; - - switch (locationRequest.type) { - case INTULocationRequestTypeSingle: - case INTULocationRequestTypeSubscription: - { - // Determine the maximum desired accuracy for all remaining location requests - INTULocationAccuracy maximumDesiredAccuracy = INTULocationAccuracyNone; - for (INTULocationRequest *locationRequest in [self activeLocationRequestsExcludingType:INTULocationRequestTypeSignificantChanges]) { - if (locationRequest.desiredAccuracy > maximumDesiredAccuracy) { - maximumDesiredAccuracy = locationRequest.desiredAccuracy; - } - } - [self updateWithMaximumDesiredAccuracy:maximumDesiredAccuracy]; - - [self stopUpdatingLocationIfPossible]; - } - break; - case INTULocationRequestTypeSignificantChanges: - [self stopMonitoringSignificantLocationChangesIfPossible]; - break; - } -} - -/** - Returns the most recent current location, or nil if the current location is unknown, invalid, or stale. - */ -- (CLLocation *)currentLocation -{ - if (_currentLocation) { - // Location isn't nil, so test to see if it is valid - if (_currentLocation.coordinate.latitude == 0.0 && _currentLocation.coordinate.longitude == 0.0) { - // The current location is invalid; discard it and return nil - _currentLocation = nil; - } - } - - // Location is either nil or valid at this point, return it - return _currentLocation; -} - -/** - Requests permission to use location services on devices with iOS 8+. - */ -- (void)requestAuthorizationIfNeeded -{ -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 - // As of iOS 8, apps must explicitly request location services permissions. INTULocationManager supports both levels, "Always" and "When In Use". - // INTULocationManager determines which level of permissions to request based on which description key is present in your app's Info.plist - // If you provide values for both description keys, the more permissive "Always" level is requested. - if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1 && [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { - BOOL hasAlwaysKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationAlwaysUsageDescription"] != nil; - BOOL hasWhenInUseKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil; - if (hasAlwaysKey) { - [self.locationManager requestAlwaysAuthorization]; - } else if (hasWhenInUseKey) { - [self.locationManager requestWhenInUseAuthorization]; - } else { - // At least one of the keys NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription MUST be present in the Info.plist file to use location services on iOS 8+. - NSAssert(hasAlwaysKey || hasWhenInUseKey, @"To use location services in iOS 8+, your Info.plist must provide a value for either NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription."); - } - } -#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 */ -} - -/** - Sets the CLLocationManager desiredAccuracy based on the given maximum desired accuracy (which should be the maximum desired accuracy of all active location requests). - */ -- (void)updateWithMaximumDesiredAccuracy:(INTULocationAccuracy)maximumDesiredAccuracy -{ - switch (maximumDesiredAccuracy) { - case INTULocationAccuracyNone: - break; - case INTULocationAccuracyCity: - if (self.locationManager.desiredAccuracy != kCLLocationAccuracyThreeKilometers) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyThreeKilometers; - INTULMLog(@"Changing location services accuracy level to: low (minimum)."); - } - break; - case INTULocationAccuracyNeighborhood: - if (self.locationManager.desiredAccuracy != kCLLocationAccuracyKilometer) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyKilometer; - INTULMLog(@"Changing location services accuracy level to: medium low."); - } - break; - case INTULocationAccuracyBlock: - if (self.locationManager.desiredAccuracy != kCLLocationAccuracyHundredMeters) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; - INTULMLog(@"Changing location services accuracy level to: medium."); - } - break; - case INTULocationAccuracyHouse: - if (self.locationManager.desiredAccuracy != kCLLocationAccuracyNearestTenMeters) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters; - INTULMLog(@"Changing location services accuracy level to: medium high."); - } - break; - case INTULocationAccuracyRoom: - if (self.locationManager.desiredAccuracy != kCLLocationAccuracyBest) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyBest; - INTULMLog(@"Changing location services accuracy level to: high (maximum)."); - } - break; - default: - NSAssert(nil, @"Invalid maximum desired accuracy!"); - break; - } -} - -/** - Inform CLLocationManager to start monitoring significant location changes. - */ -- (void)startMonitoringSignificantLocationChangesIfNeeded -{ - [self requestAuthorizationIfNeeded]; - - NSArray *locationRequests = [self activeLocationRequestsWithType:INTULocationRequestTypeSignificantChanges]; - if (locationRequests.count == 0) { - [self.locationManager startMonitoringSignificantLocationChanges]; - if (self.isMonitoringSignificantLocationChanges == NO) { - INTULMLog(@"Significant location change monitoring has started.") - } - self.isMonitoringSignificantLocationChanges = YES; - } -} - -/** - Inform CLLocationManager to start sending us updates to our location. - */ -- (void)startUpdatingLocationIfNeeded -{ - [self requestAuthorizationIfNeeded]; - - NSArray *locationRequests = [self activeLocationRequestsExcludingType:INTULocationRequestTypeSignificantChanges]; - if (locationRequests.count == 0) { - [self.locationManager startUpdatingLocation]; - if (self.isUpdatingLocation == NO) { - INTULMLog(@"Location services updates have started."); - } - self.isUpdatingLocation = YES; - } -} - -- (void)stopMonitoringSignificantLocationChangesIfPossible -{ - NSArray *locationRequests = [self activeLocationRequestsWithType:INTULocationRequestTypeSignificantChanges]; - if (locationRequests.count == 0) { - [self.locationManager stopMonitoringSignificantLocationChanges]; - if (self.isMonitoringSignificantLocationChanges) { - INTULMLog(@"Significant location change monitoring has stopped."); - } - self.isMonitoringSignificantLocationChanges = NO; - } -} - -/** - Checks to see if there are any outstanding locationRequests, and if there are none, informs CLLocationManager to stop sending - location updates. This is done as soon as location updates are no longer needed in order to conserve the device's battery. - */ -- (void)stopUpdatingLocationIfPossible -{ - NSArray *locationRequests = [self activeLocationRequestsExcludingType:INTULocationRequestTypeSignificantChanges]; - if (locationRequests.count == 0) { - [self.locationManager stopUpdatingLocation]; - if (self.isUpdatingLocation) { - INTULMLog(@"Location services updates have stopped."); - } - self.isUpdatingLocation = NO; - } -} - -/** - Iterates over the array of active location requests to check and see if the most recent current location - successfully satisfies any of their criteria. - */ -- (void)processLocationRequests -{ - CLLocation *mostRecentLocation = self.currentLocation; - - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.hasTimedOut) { - // Non-recurring request has timed out, complete it - [self completeLocationRequest:locationRequest]; - continue; - } - - if (mostRecentLocation != nil) { - if (locationRequest.isRecurring) { - // This is a subscription request, which lives indefinitely (unless manually canceled) and receives every location update we get - [self processRecurringRequest:locationRequest]; - continue; - } else { - // This is a regular one-time location request - NSTimeInterval currentLocationTimeSinceUpdate = fabs([mostRecentLocation.timestamp timeIntervalSinceNow]); - CLLocationAccuracy currentLocationHorizontalAccuracy = mostRecentLocation.horizontalAccuracy; - NSTimeInterval staleThreshold = [locationRequest updateTimeStaleThreshold]; - CLLocationAccuracy horizontalAccuracyThreshold = [locationRequest horizontalAccuracyThreshold]; - if (currentLocationTimeSinceUpdate <= staleThreshold && - currentLocationHorizontalAccuracy <= horizontalAccuracyThreshold) { - // The request's desired accuracy has been reached, complete it - [self completeLocationRequest:locationRequest]; - continue; - } - } - } - } -} - -/** - Immediately completes all active location requests. - Used in cases such as when the location services authorization status changes to Denied or Restricted. - */ -- (void)completeAllLocationRequests -{ - // Iterate through a copy of the locationRequests array to avoid modifying the same array we are removing elements from - __INTU_GENERICS(NSArray, INTULocationRequest *) *locationRequests = [self.locationRequests copy]; - for (INTULocationRequest *locationRequest in locationRequests) { - [self completeLocationRequest:locationRequest]; - } - INTULMLog(@"Finished completing all location requests."); -} - -/** - Completes the given location request by removing it from the array of locationRequests and executing its completion block. - */ -- (void)completeLocationRequest:(INTULocationRequest *)locationRequest -{ - if (locationRequest == nil) { - return; - } - - [locationRequest complete]; - [self removeLocationRequest:locationRequest]; - - INTULocationStatus status = [self statusForLocationRequest:locationRequest]; - CLLocation *currentLocation = self.currentLocation; - INTULocationAccuracy achievedAccuracy = [self achievedAccuracyForLocation:currentLocation]; - - // INTULocationManager is not thread safe and should only be called from the main thread, so we should already be executing on the main thread now. - // dispatch_async is used to ensure that the completion block for a request is not executed before the request ID is returned, for example in the - // case where the user has denied permission to access location services and the request is immediately completed with the appropriate error. - dispatch_async(dispatch_get_main_queue(), ^{ - if (locationRequest.block) { - locationRequest.block(currentLocation, achievedAccuracy, status); - } - }); - - INTULMLog(@"Location Request completed with ID: %ld, currentLocation: %@, achievedAccuracy: %lu, status: %lu", (long)locationRequest.requestID, currentLocation, (unsigned long) achievedAccuracy, (unsigned long)status); -} - -/** - Handles calling a recurring location request's block with the current location. - */ -- (void)processRecurringRequest:(INTULocationRequest *)locationRequest -{ - NSAssert(locationRequest.isRecurring, @"This method should only be called for recurring location requests."); - - INTULocationStatus status = [self statusForLocationRequest:locationRequest]; - CLLocation *currentLocation = self.currentLocation; - INTULocationAccuracy achievedAccuracy = [self achievedAccuracyForLocation:currentLocation]; - - // INTULocationManager is not thread safe and should only be called from the main thread, so we should already be executing on the main thread now. - // dispatch_async is used to ensure that the completion block for a request is not executed before the request ID is returned. - dispatch_async(dispatch_get_main_queue(), ^{ - if (locationRequest.block) { - locationRequest.block(currentLocation, achievedAccuracy, status); - } - }); -} - -/** - Returns all active location requests with the given type. - */ -- (NSArray *)activeLocationRequestsWithType:(INTULocationRequestType)locationRequestType -{ - return [self.locationRequests filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(INTULocationRequest *evaluatedObject, NSDictionary *bindings) { - return evaluatedObject.type == locationRequestType; - }]]; -} - -/** - Returns all active location requests excluding requests with the given type. - */ -- (NSArray *)activeLocationRequestsExcludingType:(INTULocationRequestType)locationRequestType -{ - return [self.locationRequests filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(INTULocationRequest *evaluatedObject, NSDictionary *bindings) { - return evaluatedObject.type != locationRequestType; - }]]; -} - -/** - Returns the location manager status for the given location request. - */ -- (INTULocationStatus)statusForLocationRequest:(INTULocationRequest *)locationRequest -{ - INTULocationServicesState locationServicesState = [INTULocationManager locationServicesState]; - - if (locationServicesState == INTULocationServicesStateDisabled) { - return INTULocationStatusServicesDisabled; - } - else if (locationServicesState == INTULocationServicesStateNotDetermined) { - return INTULocationStatusServicesNotDetermined; - } - else if (locationServicesState == INTULocationServicesStateDenied) { - return INTULocationStatusServicesDenied; - } - else if (locationServicesState == INTULocationServicesStateRestricted) { - return INTULocationStatusServicesRestricted; - } - else if (self.updateFailed) { - return INTULocationStatusError; - } - else if (locationRequest.hasTimedOut) { - return INTULocationStatusTimedOut; - } - - return INTULocationStatusSuccess; -} - -/** - Returns the associated INTULocationAccuracy level that has been achieved for a given location, - based on that location's horizontal accuracy and recency. - */ -- (INTULocationAccuracy)achievedAccuracyForLocation:(CLLocation *)location -{ - if (!location) { - return INTULocationAccuracyNone; - } - - NSTimeInterval timeSinceUpdate = fabs([location.timestamp timeIntervalSinceNow]); - CLLocationAccuracy horizontalAccuracy = location.horizontalAccuracy; - - if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdRoom && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdRoom) { - return INTULocationAccuracyRoom; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdHouse && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdHouse) { - return INTULocationAccuracyHouse; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdBlock && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdBlock) { - return INTULocationAccuracyBlock; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdNeighborhood && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdNeighborhood) { - return INTULocationAccuracyNeighborhood; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdCity && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdCity) { - return INTULocationAccuracyCity; - } - else { - return INTULocationAccuracyNone; - } -} - -#pragma mark INTULocationRequestDelegate method - -- (void)locationRequestDidTimeout:(INTULocationRequest *)locationRequest -{ - // For robustness, only complete the location request if it is still active (by checking to see that it hasn't been removed from the locationRequests array). - for (INTULocationRequest *activeLocationRequest in self.locationRequests) { - if (activeLocationRequest.requestID == locationRequest.requestID) { - [self completeLocationRequest:locationRequest]; - break; - } - } -} - -#pragma mark CLLocationManagerDelegate methods - -- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - // Received update successfully, so clear any previous errors - self.updateFailed = NO; - - CLLocation *mostRecentLocation = [locations lastObject]; - self.currentLocation = mostRecentLocation; - - // Process the location requests using the updated location - [self processLocationRequests]; -} - -- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error -{ - INTULMLog(@"Location services error: %@", [error localizedDescription]); - self.updateFailed = YES; - - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.isRecurring) { - // Keep the recurring request alive - [self processRecurringRequest:locationRequest]; - } else { - // Fail any non-recurring requests - [self completeLocationRequest:locationRequest]; - } - } -} - -- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - if (status == kCLAuthorizationStatusDenied || status == kCLAuthorizationStatusRestricted) { - // Clear out any active location requests (which will execute the blocks with a status that reflects - // the unavailability of location services) since we now no longer have location services permissions - [self completeAllLocationRequests]; - } -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 - else if (status == kCLAuthorizationStatusAuthorizedAlways || status == kCLAuthorizationStatusAuthorizedWhenInUse) { -#else - else if (status == kCLAuthorizationStatusAuthorized) { -#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 */ - - // Start the timeout timer for location requests that were waiting for authorization - for (INTULocationRequest *locationRequest in self.locationRequests) { - [locationRequest startTimeoutTimerIfNeeded]; - } - } -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.h" deleted file mode 100755 index 21d0164..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.h" +++ /dev/null @@ -1,103 +0,0 @@ -// -// INTULocationRequest.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequestDefines.h" - -__INTU_ASSUME_NONNULL_BEGIN - -/** The available types of location requests. */ -typedef NS_ENUM(NSInteger, INTULocationRequestType) { - /** A one-time location request with a specific desired accuracy and optional timeout. */ - INTULocationRequestTypeSingle, - /** A subscription to location updates. */ - INTULocationRequestTypeSubscription, - /** A subscription to significant location changes. */ - INTULocationRequestTypeSignificantChanges -}; - -@class INTULocationRequest; - -/** - Protocol for the INTULocationRequest to notify the its delegate that a request has timed out. - */ -@protocol INTULocationRequestDelegate - -/** - Notification that a location request has timed out. - - @param locationRequest The location request that timed out. - */ -- (void)locationRequestDidTimeout:(INTULocationRequest *)locationRequest; - -@end - - -/** - Represents a geolocation request that is created and managed by INTULocationManager. - */ -@interface INTULocationRequest : NSObject - -/** The delegate for this location request. */ -@property (nonatomic, weak, __INTU_NULLABLE) id delegate; -/** The request ID for this location request (set during initialization). */ -@property (nonatomic, readonly) INTULocationRequestID requestID; -/** The type of this location request (set during initialization). */ -@property (nonatomic, readonly) INTULocationRequestType type; -/** Whether this is a recurring location request (type is either Subscription or SignificantChanges). */ -@property (nonatomic, readonly) BOOL isRecurring; -/** The desired accuracy for this location request. */ -@property (nonatomic, assign) INTULocationAccuracy desiredAccuracy; -/** The maximum amount of time the location request should be allowed to live before completing. - If this value is exactly 0.0, it will be ignored (the request will never timeout by itself). */ -@property (nonatomic, assign) NSTimeInterval timeout; -/** How long the location request has been alive since the timeout value was last set. */ -@property (nonatomic, readonly) NSTimeInterval timeAlive; -/** Whether this location request has timed out (will also be YES if it has been completed). Subcriptions can never time out. */ -@property (nonatomic, readonly) BOOL hasTimedOut; -/** The block to execute when the location request completes. */ -@property (nonatomic, copy, __INTU_NULLABLE) INTULocationRequestBlock block; - -/** Designated initializer. Initializes and returns a newly allocated location request object with the specified type. */ -- (instancetype)initWithType:(INTULocationRequestType)type __INTU_DESIGNATED_INITIALIZER; - -/** Completes the location request. */ -- (void)complete; -/** Forces the location request to consider itself timed out. */ -- (void)forceTimeout; -/** Cancels the location request. */ -- (void)cancel; - -/** Starts the location request's timeout timer if a nonzero timeout value is set, and the timer has not already been started. */ -- (void)startTimeoutTimerIfNeeded; - -/** Returns the associated recency threshold (in seconds) for the location request's desired accuracy level. */ -- (NSTimeInterval)updateTimeStaleThreshold; - -/** Returns the associated horizontal accuracy threshold (in meters) for the location request's desired accuracy level. */ -- (CLLocationAccuracy)horizontalAccuracyThreshold; - -@end - -__INTU_ASSUME_NONNULL_END diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.m" deleted file mode 100755 index 2fcdcf2..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequest.m" +++ /dev/null @@ -1,249 +0,0 @@ -// -// INTULocationRequest.m -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequest.h" - - -@interface INTULocationRequest () - -// Redeclare this property as readwrite for internal use. -@property (nonatomic, assign, readwrite) BOOL hasTimedOut; - -/** The NSDate representing the time when the request started. Set when the |timeout| property is set. */ -@property (nonatomic, strong) NSDate *requestStartTime; -/** The timer that will fire to notify this request that it has timed out. Started when the |timeout| property is set. */ -@property (nonatomic, strong) NSTimer *timeoutTimer; - -@end - - -@implementation INTULocationRequest - -static INTULocationRequestID _nextRequestID = 0; - -/** - Returns a unique request ID (within the lifetime of the application). - */ -+ (INTULocationRequestID)getUniqueRequestID -{ - _nextRequestID++; - return _nextRequestID; -} - -/** - Throws an exeption when you try to create a location request using a non-designated initializer. - */ -- (instancetype)init -{ - @throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"Must use initWithType: instead." userInfo:nil]; - return [self initWithType:INTULocationRequestTypeSingle]; -} - -/** - Designated initializer. Initializes and returns a newly allocated location request object with the specified type. - - @param type The type of the location request. - */ -- (instancetype)initWithType:(INTULocationRequestType)type -{ - self = [super init]; - if (self) { - _requestID = [INTULocationRequest getUniqueRequestID]; - _type = type; - _hasTimedOut = NO; - } - return self; -} - -/** - Returns the associated recency threshold (in seconds) for the location request's desired accuracy level. - */ -- (NSTimeInterval)updateTimeStaleThreshold -{ - switch (self.desiredAccuracy) { - case INTULocationAccuracyRoom: - return kINTUUpdateTimeStaleThresholdRoom; - break; - case INTULocationAccuracyHouse: - return kINTUUpdateTimeStaleThresholdHouse; - break; - case INTULocationAccuracyBlock: - return kINTUUpdateTimeStaleThresholdBlock; - break; - case INTULocationAccuracyNeighborhood: - return kINTUUpdateTimeStaleThresholdNeighborhood; - break; - case INTULocationAccuracyCity: - return kINTUUpdateTimeStaleThresholdCity; - break; - default: - NSAssert(NO, @"Unknown desired accuracy."); - return 0.0; - break; - } -} - -/** - Returns the associated horizontal accuracy threshold (in meters) for the location request's desired accuracy level. - */ -- (CLLocationAccuracy)horizontalAccuracyThreshold -{ - switch (self.desiredAccuracy) { - case INTULocationAccuracyRoom: - return kINTUHorizontalAccuracyThresholdRoom; - break; - case INTULocationAccuracyHouse: - return kINTUHorizontalAccuracyThresholdHouse; - break; - case INTULocationAccuracyBlock: - return kINTUHorizontalAccuracyThresholdBlock; - break; - case INTULocationAccuracyNeighborhood: - return kINTUHorizontalAccuracyThresholdNeighborhood; - break; - case INTULocationAccuracyCity: - return kINTUHorizontalAccuracyThresholdCity; - break; - default: - NSAssert(NO, @"Unknown desired accuracy."); - return 0.0; - break; - } -} - -/** - Completes the location request. - */ -- (void)complete -{ - [self.timeoutTimer invalidate]; - self.timeoutTimer = nil; - self.requestStartTime = nil; -} - -/** - Forces the location request to consider itself timed out. - */ -- (void)forceTimeout -{ - if (self.isRecurring == NO) { - self.hasTimedOut = YES; - } else { - NSAssert(self.isRecurring == NO, @"Only single location requests (not recurring requests) should ever be considered timed out."); - } -} - -/** - Cancels the location request. - */ -- (void)cancel -{ - [self.timeoutTimer invalidate]; - self.timeoutTimer = nil; - self.requestStartTime = nil; -} - -/** - Starts the location request's timeout timer if a nonzero timeout value is set, and the timer has not already been started. - */ -- (void)startTimeoutTimerIfNeeded -{ - if (self.timeout > 0 && !self.timeoutTimer) { - self.requestStartTime = [NSDate date]; - self.timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:self.timeout target:self selector:@selector(timeoutTimerFired:) userInfo:nil repeats:NO]; - } -} - -/** - Computed property that returns whether this is a subscription request. - */ -- (BOOL)isRecurring -{ - return (self.type == INTULocationRequestTypeSubscription) || (self.type == INTULocationRequestTypeSignificantChanges); -} - -/** - Computed property that returns how long the request has been alive (since the timeout value was set). - */ -- (NSTimeInterval)timeAlive -{ - if (self.requestStartTime == nil) { - return 0.0; - } - return fabs([self.requestStartTime timeIntervalSinceNow]); -} - -/** - Returns whether the location request has timed out or not. - Once this becomes YES, it will not automatically reset to NO even if a new timeout value is set. - */ -- (BOOL)hasTimedOut -{ - if (self.timeout > 0.0 && self.timeAlive > self.timeout) { - _hasTimedOut = YES; - } - return _hasTimedOut; -} - -/** - Callback when the timeout timer fires. Notifies the delegate that this event has occurred. - */ -- (void)timeoutTimerFired:(NSTimer *)timer -{ - self.hasTimedOut = YES; - [self.delegate locationRequestDidTimeout:self]; -} - -/** - Two location requests are considered equal if their request IDs match. - */ -- (BOOL)isEqual:(id)object -{ - if (object == self) { - return YES; - } - if (!object || ![object isKindOfClass:[self class]]) { - return NO; - } - if (((INTULocationRequest *)object).requestID == self.requestID) { - return YES; - } - return NO; -} - -/** - Return a hash based on the string representation of the request ID. - */ -- (NSUInteger)hash -{ - return [[NSString stringWithFormat:@"%ld", (long)self.requestID] hash]; -} - -- (void)dealloc -{ - [_timeoutTimer invalidate]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequestDefines.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequestDefines.h" deleted file mode 100755 index b0da4df..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/INTULocationManager/INTULocationRequestDefines.h" +++ /dev/null @@ -1,136 +0,0 @@ -// -// INTULocationRequestDefines.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#ifndef INTU_LOCATION_REQUEST_DEFINES_H -#define INTU_LOCATION_REQUEST_DEFINES_H - -#import -#import - -#if __has_feature(nullability) -# define __INTU_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN -# define __INTU_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END -# define __INTU_NULLABLE nullable -#else -# define __INTU_ASSUME_NONNULL_BEGIN -# define __INTU_ASSUME_NONNULL_END -# define __INTU_NULLABLE -#endif - -#if __has_feature(objc_generics) -# define __INTU_GENERICS(type, ...) type<__VA_ARGS__> -#else -# define __INTU_GENERICS(type, ...) type -#endif - -#ifdef NS_DESIGNATED_INITIALIZER -# define __INTU_DESIGNATED_INITIALIZER NS_DESIGNATED_INITIALIZER -#else -# define __INTU_DESIGNATED_INITIALIZER -#endif - -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdCity = 5000.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdNeighborhood = 1000.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdBlock = 100.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdHouse = 15.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdRoom = 5.0; // in meters - -static const NSTimeInterval kINTUUpdateTimeStaleThresholdCity = 600.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdNeighborhood = 300.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdBlock = 60.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdHouse = 15.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdRoom = 5.0; // in seconds - -/** The possible states that location services can be in. */ -typedef NS_ENUM(NSInteger, INTULocationServicesState) { - /** User has already granted this app permissions to access location services, and they are enabled and ready for use by this app. - Note: this state will be returned for both the "When In Use" and "Always" permission levels. */ - INTULocationServicesStateAvailable, - /** User has not yet responded to the dialog that grants this app permission to access location services. */ - INTULocationServicesStateNotDetermined, - /** User has explicitly denied this app permission to access location services. (The user can enable permissions again for this app from the system Settings app.) */ - INTULocationServicesStateDenied, - /** User does not have ability to enable location services (e.g. parental controls, corporate policy, etc). */ - INTULocationServicesStateRestricted, - /** User has turned off location services device-wide (for all apps) from the system Settings app. */ - INTULocationServicesStateDisabled -}; - -/** A unique ID that corresponds to one location request. */ -typedef NSInteger INTULocationRequestID; - -/** An abstraction of both the horizontal accuracy and recency of location data. - Room is the highest level of accuracy/recency; City is the lowest level. */ -typedef NS_ENUM(NSInteger, INTULocationAccuracy) { - // 'None' is not valid as a desired accuracy. - /** Inaccurate (>5000 meters, and/or received >10 minutes ago). */ - INTULocationAccuracyNone = 0, - - // The below options are valid desired accuracies. - /** 5000 meters or better, and received within the last 10 minutes. Lowest accuracy. */ - INTULocationAccuracyCity, - /** 1000 meters or better, and received within the last 5 minutes. */ - INTULocationAccuracyNeighborhood, - /** 100 meters or better, and received within the last 1 minute. */ - INTULocationAccuracyBlock, - /** 15 meters or better, and received within the last 15 seconds. */ - INTULocationAccuracyHouse, - /** 5 meters or better, and received within the last 5 seconds. Highest accuracy. */ - INTULocationAccuracyRoom, -}; - -/** A status that will be passed in to the completion block of a location request. */ -typedef NS_ENUM(NSInteger, INTULocationStatus) { - // These statuses will accompany a valid location. - /** Got a location and desired accuracy level was achieved successfully. */ - INTULocationStatusSuccess = 0, - /** Got a location, but the desired accuracy level was not reached before timeout. (Not applicable to subscriptions.) */ - INTULocationStatusTimedOut, - - // These statuses indicate some sort of error, and will accompany a nil location. - /** User has not yet responded to the dialog that grants this app permission to access location services. */ - INTULocationStatusServicesNotDetermined, - /** User has explicitly denied this app permission to access location services. */ - INTULocationStatusServicesDenied, - /** User does not have ability to enable location services (e.g. parental controls, corporate policy, etc). */ - INTULocationStatusServicesRestricted, - /** User has turned off location services device-wide (for all apps) from the system Settings app. */ - INTULocationStatusServicesDisabled, - /** An error occurred while using the system location services. */ - INTULocationStatusError -}; - -/** - A block type for a location request, which is executed when the request succeeds, fails, or times out. - - @param currentLocation The most recent & accurate current location available when the block executes, or nil if no valid location is available. - @param achievedAccuracy The accuracy level that was actually achieved (may be better than, equal to, or worse than the desired accuracy). - @param status The status of the location request - whether it succeeded, timed out, or failed due to some sort of error. This can be used to - understand what the outcome of the request was, decide if/how to use the associated currentLocation, and determine whether other - actions are required (such as displaying an error message to the user, retrying with another request, quietly proceeding, etc). - */ -typedef void(^INTULocationRequestBlock)(CLLocation *currentLocation, INTULocationAccuracy achievedAccuracy, INTULocationStatus status); - -#endif /* INTU_LOCATION_REQUEST_DEFINES_H */ diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Info.plist" deleted file mode 100644 index c4c4045..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/Info.plist" +++ /dev/null @@ -1,49 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationAlwaysUsageDescription - ios8.0+瀹氫綅鎻忚堪 - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.h" deleted file mode 100644 index c7be856..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.m" deleted file mode 100644 index d9d2f0f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/ViewController.m" +++ /dev/null @@ -1,66 +0,0 @@ -// -// ViewController.m -// 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import "INTULocationManager.h" - -@interface ViewController () - -@end - -@implementation ViewController - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - // 1. 鍒涘缓涓涓綅缃鐞嗚 - INTULocationManager *locMgr = [INTULocationManager sharedInstance]; -// 2. 寮濮嬭姹備綅缃俊鎭 -// delayUntilAuthorized 纭畾瓒呮椂鏃堕棿, 浠庝粈涔堟椂闂村紑濮嬭绠 - // YES, 浠庣敤鎴烽夋嫨鎺堟潈涔嬪悗寮濮嬭绠 - // No , 浠庢墽琛岃繖琛屼唬鐮佸紑濮嬭绠 - INTULocationRequestID requestID = [locMgr requestLocationWithDesiredAccuracy:INTULocationAccuracyRoom - timeout:3.0 - delayUntilAuthorized:NO - block:^(CLLocation *currentLocation, INTULocationAccuracy achievedAccuracy, INTULocationStatus status) { - if (status == INTULocationStatusSuccess) { - NSLog(@"瀹氫綅鎴愬姛--%@", currentLocation); - } - else - { - NSLog(@"瀹氫綅澶辫触--%zd", status); - } - - }]; -// [[INTULocationManager sharedInstance] forceCompleteLocationRequest:requestID]; -// [[INTULocationManager sharedInstance] cancelLocationRequest:requestID]; - -// [self continues]; -} - - -- (void)continues -{ - INTULocationManager *locMgr = [INTULocationManager sharedInstance]; - INTULocationRequestID requestID = [locMgr subscribeToLocationUpdatesWithDesiredAccuracy:INTULocationAccuracyHouse - block:^(CLLocation *currentLocation, INTULocationAccuracy achievedAccuracy, INTULocationStatus status) { - if (status == INTULocationStatusSuccess) { - - NSLog(@"--瀹氫綅鎴愬姛--%@", currentLocation); - } - else { - NSLog(@"dingweishibai"); - } - }]; - - // 寮哄埗瀹屾垚浣嶇疆璇锋眰, 閫傜敤浜庡崟璇嶈姹, 鎸佺画鎬ц姹備笉琛 - - -} - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/main.m" deleted file mode 100644 index 6010003..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/08-\346\216\214\346\217\241-CoreLocation\346\241\206\346\236\266\347\232\204\345\237\272\346\234\254\344\275\277\347\224\250\342\200\224\345\256\232\344\275\215\347\232\204\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 08-鎺屾彙-CoreLocation妗嗘灦鐨勫熀鏈娇鐢ㄢ斿畾浣嶇殑绗笁鏂规鏋 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" deleted file mode 100644 index 2cb06fc..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,320 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 631ED57A1C27E6E400988F57 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5791C27E6E400988F57 /* main.m */; }; - 631ED57D1C27E6E400988F57 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED57C1C27E6E400988F57 /* AppDelegate.m */; }; - 631ED5801C27E6E400988F57 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED57F1C27E6E400988F57 /* ViewController.m */; }; - 631ED5831C27E6E400988F57 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5811C27E6E400988F57 /* Main.storyboard */; }; - 631ED5851C27E6E400988F57 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5841C27E6E400988F57 /* Assets.xcassets */; }; - 631ED5881C27E6E400988F57 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 631ED5861C27E6E400988F57 /* LaunchScreen.storyboard */; }; - 631ED5911C27E70F00988F57 /* XMGLocationTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 631ED5901C27E70F00988F57 /* XMGLocationTool.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 631ED5751C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 631ED5791C27E6E400988F57 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 631ED57B1C27E6E400988F57 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 631ED57C1C27E6E400988F57 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 631ED57E1C27E6E400988F57 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; - 631ED57F1C27E6E400988F57 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; - 631ED5821C27E6E400988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 631ED5841C27E6E400988F57 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 631ED5871C27E6E400988F57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 631ED5891C27E6E400988F57 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 631ED58F1C27E70F00988F57 /* XMGLocationTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMGLocationTool.h; sourceTree = ""; }; - 631ED5901C27E70F00988F57 /* XMGLocationTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMGLocationTool.m; sourceTree = ""; }; - 631ED5921C27E71F00988F57 /* Singleton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Singleton.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 631ED5721C27E6E400988F57 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 631ED56C1C27E6E400988F57 = { - isa = PBXGroup; - children = ( - 631ED5771C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */, - 631ED5761C27E6E400988F57 /* Products */, - ); - sourceTree = ""; - }; - 631ED5761C27E6E400988F57 /* Products */ = { - isa = PBXGroup; - children = ( - 631ED5751C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */, - ); - name = Products; - sourceTree = ""; - }; - 631ED5771C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */ = { - isa = PBXGroup; - children = ( - 631ED57B1C27E6E400988F57 /* AppDelegate.h */, - 631ED57C1C27E6E400988F57 /* AppDelegate.m */, - 631ED57E1C27E6E400988F57 /* ViewController.h */, - 631ED57F1C27E6E400988F57 /* ViewController.m */, - 631ED58F1C27E70F00988F57 /* XMGLocationTool.h */, - 631ED5901C27E70F00988F57 /* XMGLocationTool.m */, - 631ED5921C27E71F00988F57 /* Singleton.h */, - 631ED5811C27E6E400988F57 /* Main.storyboard */, - 631ED5841C27E6E400988F57 /* Assets.xcassets */, - 631ED5861C27E6E400988F57 /* LaunchScreen.storyboard */, - 631ED5891C27E6E400988F57 /* Info.plist */, - 631ED5781C27E6E400988F57 /* Supporting Files */, - ); - path = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - sourceTree = ""; - }; - 631ED5781C27E6E400988F57 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 631ED5791C27E6E400988F57 /* main.m */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 631ED5741C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 631ED58C1C27E6E400988F57 /* Build configuration list for PBXNativeTarget "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */; - buildPhases = ( - 631ED5711C27E6E400988F57 /* Sources */, - 631ED5721C27E6E400988F57 /* Frameworks */, - 631ED5731C27E6E400988F57 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - productName = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - productReference = 631ED5751C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 631ED56D1C27E6E400988F57 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 631ED5741C27E6E400988F57 = { - CreatedOnToolsVersion = 7.1.1; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 631ED5701C27E6E400988F57 /* Build configuration list for PBXProject "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 631ED56C1C27E6E400988F57; - productRefGroup = 631ED5761C27E6E400988F57 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 631ED5741C27E6E400988F57 /* 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 631ED5731C27E6E400988F57 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED5881C27E6E400988F57 /* LaunchScreen.storyboard in Resources */, - 631ED5851C27E6E400988F57 /* Assets.xcassets in Resources */, - 631ED5831C27E6E400988F57 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 631ED5711C27E6E400988F57 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 631ED5801C27E6E400988F57 /* ViewController.m in Sources */, - 631ED57D1C27E6E400988F57 /* AppDelegate.m in Sources */, - 631ED57A1C27E6E400988F57 /* main.m in Sources */, - 631ED5911C27E70F00988F57 /* XMGLocationTool.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 631ED5811C27E6E400988F57 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5821C27E6E400988F57 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 631ED5861C27E6E400988F57 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 631ED5871C27E6E400988F57 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 631ED58A1C27E6E400988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 631ED58B1C27E6E400988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 631ED58D1C27E6E400988F57 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-9------block-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 631ED58E1C27E6E400988F57 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520.-9------block-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 631ED5701C27E6E400988F57 /* Build configuration list for PBXProject "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED58A1C27E6E400988F57 /* Debug */, - 631ED58B1C27E6E400988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 631ED58C1C27E6E400988F57 /* Build configuration list for PBXNativeTarget "09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 631ED58D1C27E6E400988F57 /* Debug */, - 631ED58E1C27E6E400988F57 /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 631ED56D1C27E6E400988F57 /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100644 index 55a68d4..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.h" deleted file mode 100644 index 5b5b2d6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.h" +++ /dev/null @@ -1,17 +0,0 @@ -// -// AppDelegate.h -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.m" deleted file mode 100644 index 05921e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.m" +++ /dev/null @@ -1,45 +0,0 @@ -// -// AppDelegate.m -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - -- (void)applicationWillResignActive:(UIApplication *)application { - // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. -} - -- (void)applicationDidEnterBackground:(UIApplication *)application { - // 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. -} - -- (void)applicationWillEnterForeground:(UIApplication *)application { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. -} - -- (void)applicationDidBecomeActive:(UIApplication *)application { - // 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. -} - -- (void)applicationWillTerminate:(UIApplication *)application { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100644 index 36d2c80..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "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" : "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" deleted file mode 100644 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" deleted file mode 100644 index f56d2f3..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" deleted file mode 100644 index 924defc..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" +++ /dev/null @@ -1,51 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationWhenInUseUsageDescription - 鍓嶅彴鎻忚堪 - UIBackgroundModes - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Singleton.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Singleton.h" deleted file mode 100755 index 12f73c9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Singleton.h" +++ /dev/null @@ -1,28 +0,0 @@ - - -// .h -#define single_interface(class) + (class *)shared##class; - -// .m -// \ 浠h〃涓嬩竴琛屼篃灞炰簬瀹 -// ## 鏄垎闅旂 -#define single_implementation(class) \ -static class *_instance; \ - \ -+ (class *)shared##class \ -{ \ - if (_instance == nil) { \ - _instance = [[self alloc] init]; \ - } \ - return _instance; \ -} \ - \ -+ (id)allocWithZone:(NSZone *)zone \ -{ \ - static dispatch_once_t onceToken; \ - dispatch_once(&onceToken, ^{ \ - _instance = [super allocWithZone:zone]; \ - }); \ - return _instance; \ -} - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.h" deleted file mode 100644 index 6602376..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// ViewController.h -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import - -@interface ViewController : UIViewController - - -@end - diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.m" deleted file mode 100644 index da3ba8a..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.m" +++ /dev/null @@ -1,36 +0,0 @@ -// -// ViewController.m -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "ViewController.h" -#import "XMGLocationTool.h" -@interface ViewController () - -@end - -@implementation ViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - - [[XMGLocationTool sharedXMGLocationTool] getCurrentLocation:^(CLLocation *location, CLPlacemark *pl, NSString *erroMsg) { - if ([erroMsg length] == 0) { - NSLog(@"%@----%@", location, pl.name); - }else - { - NSLog(@"%@", erroMsg); - } - }]; - -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.h" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.h" deleted file mode 100644 index d465944..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.h" +++ /dev/null @@ -1,23 +0,0 @@ -// -// XMGLocationTool.h -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import -#import "Singleton.h" - -typedef void(^ResultBlock)(CLLocation *location, CLPlacemark *pl, NSString *erroMsg); - - -@interface XMGLocationTool : NSObject -single_interface(XMGLocationTool) - -- (void)getCurrentLocation:(ResultBlock)resultBlock; - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.m" deleted file mode 100644 index 096085d..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.m" +++ /dev/null @@ -1,177 +0,0 @@ -// -// XMGLocationTool.m -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import "XMGLocationTool.h" -#import - -#define isIOS(version) ([[UIDevice currentDevice].systemVersion floatValue] >= version) - -@interface XMGLocationTool() - -@property (nonatomic, copy) ResultBlock resultBlock; - -/** 浣嶇疆绠$悊鑰*/ -@property(nonatomic ,strong) CLLocationManager *locationM; - -/** 鍦扮悊缂栫爜鍣*/ -@property(nonatomic ,strong) CLGeocoder *geoC; - - -@end - - -@implementation XMGLocationTool -single_implementation(XMGLocationTool) - -/** - * 鍦扮悊缂栫爜鍣ㄦ噿鍔犺浇鏂规硶 - */ -- (CLGeocoder *)geoC -{ - if (!_geoC) { - _geoC = [[CLGeocoder alloc] init]; - } - return _geoC; -} - - -/** - * 浣嶇疆绠$悊鑰呮噿鍔犺浇鏂规硶 - */ -- (CLLocationManager *)locationM -{ - if (!_locationM) { - _locationM = [[CLLocationManager alloc] init]; - _locationM.delegate = self; - - if (isIOS(8.0)) - { - // 鍦ㄨ繖閲岃姹傛巿鏉 - // 鍥犱负鎴戜滑寮鍙戠殑宸ュ叿绫, 鏄粰鍒殑寮鍙戜汉鍛樹娇鐢, 鎵浠ュ苟涓嶇煡閬撳埆鐨勫紑鍙戜汉鍛樻剰鍥, 浣嗘槸鎴戜滑鍙互閫氳繃info.plist鏂囦欢鏉ュ垽鏂叾浠栧紑鍙戣呯殑鎰忓浘 - -// [_locationM requestAlwaysAuthorization]; - - // 1. 鑾峰彇info.plist瀛楀吀, - NSDictionary *infoDic = [NSBundle mainBundle].infoDictionary; - - // 2. 鑾峰彇鍓嶅彴瀹氫綅鎻忚堪鍜屽墠鍚庡彴瀹氫綅鎻忚堪, 鐒跺悗, 鍒ゆ柇 - // 2.1. 濡傛灉涓や釜閮戒负绌, 鎻愰啋鍏朵粬寮鍙戣, 闇瑕佹墜鍔ㄩ厤缃袱涓猭ey - // 2.2 濡傛灉鍏朵粬寮鍙戣, 閰嶇疆鐨勬槸鍓嶅彴瀹氫綅鎻忚堪, 璇锋眰鍓嶅彴瀹氫綅鎺堟潈 - // 2.3 濡傛灉鍏朵粬寮鍙戣, 閰嶇疆鐨勬槸鍓嶅悗鍙板畾浣嶆弿杩, 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉 - - - - NSString *whenInUse = infoDic[@"NSLocationWhenInUseUsageDescription"]; - NSString *always = infoDic[@"NSLocationAlwaysUsageDescription"]; - if ([always length] > 0) { - [_locationM requestAlwaysAuthorization]; - } - else if ([whenInUse length] > 0) - { - [_locationM requestWhenInUseAuthorization]; - - // 鍒ゆ柇鐢ㄦ埛鏈夋病鏈夊嬀閫夊悗鍙版ā寮 - NSArray *backModes = infoDic[@"UIBackgroundModes"]; - if ([backModes containsObject:@"location"]) { - // ios9.0 - if (isIOS(9.0)) { - _locationM.allowsBackgroundLocationUpdates = YES; - } - - }else - { - NSLog(@"娓╅Θ鎻愮ず, 褰撳墠璇锋眰鐨勬巿鏉冩槸鍓嶅彴瀹氫綅鎺堟潈, 濡傛灉鎯宠鍦ㄥ悗鍙拌幏鍙栫敤鎴蜂綅缃, 闇瑕佸嬀閫夊悗鍙版ā寮弆ocation updates"); - } - - }else - { - NSLog(@"娓╅Θ鎻愮ず: 濡傛灉瑕佸湪iOS8.0涔嬪悗鑾峰彇鐢ㄦ埛浣嶇疆, 蹇呴』,鍦╥nfo.plist鏂囦欢閲岄潰閰嶇疆NSLocationWhenInUseUsageDescription 鎴栬 NSLocationAlwaysUsageDescription"); - } - - - } - - } - return _locationM; -} - - --(void)getCurrentLocation:(ResultBlock)resultBlock -{ - // 1. 璁板綍block, 鍦ㄥ悎閫傜殑鍦版柟鎵ц - self.resultBlock = resultBlock; - - // 2. 寮濮嬪畾浣 - if ([CLLocationManager locationServicesEnabled]) { - [self.locationM startUpdatingLocation]; - }else - { - self.resultBlock(nil, nil,@"瀹氫綅鏈嶅姟鍏抽棴"); - } - -} - - -#pragma mark - CLLocationManagerDelegate - --(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - CLLocation *loc = [locations lastObject]; - - // 鍙嶅湴鐞嗙紪鐮 - [self.geoC reverseGeocodeLocation:loc completionHandler:^(NSArray * _Nullable placemarks, NSError * _Nullable error) { - - if (error) { - self.resultBlock(loc, nil, error.localizedDescription); - }else - { - CLPlacemark *pl = [placemarks firstObject]; - self.resultBlock(loc, pl, nil); - } - - - }]; - - - // 鍋滄 - [self.locationM stopUpdatingLocation]; -} - - --(void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - switch (status) { - // 绯荤粺棰勭暀瀛楁, 鏆傛椂娌℃湁鐢 - case kCLAuthorizationStatusRestricted: - { - self.resultBlock(nil, nil, @"鍙楅檺鍒"); - break; - } - case kCLAuthorizationStatusDenied: - { - - // 鍒ゆ柇鏄惁鏀寔瀹氫綅, 鎴栬呭畾浣嶆湇鍔℃槸鍚﹀紑鍚 - if ([CLLocationManager locationServicesEnabled]) - { - self.resultBlock(nil, nil, @"鐪熸琚嫆缁"); - } - break; - } - - - default: - break; - } - -} - - - - - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/main.m" "b/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/main.m" deleted file mode 100644 index 414dc96..0000000 --- "a/CoreLocation\346\241\206\346\236\266/OC_Code/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/main.m" +++ /dev/null @@ -1,16 +0,0 @@ -// -// main.m -// 09-浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 1 on 15/12/21. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.pbxproj" deleted file mode 100755 index af9faa1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,297 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */; }; - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */; }; - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */; }; - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */; }; - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B0C51C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B0CD1C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B0D21C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0BC1C1276BB00E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B0C71C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 */, - 7BA2B0C61C1276BB00E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B0C61C1276BB00E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B0C51C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B0C71C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 */ = { - isa = PBXGroup; - children = ( - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */, - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */, - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */, - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */, - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */, - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */, - ); - path = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B0C41C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣" */; - buildPhases = ( - 7BA2B0C11C1276BB00E7C4BC /* Sources */, - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */, - 7BA2B0C31C1276BB00E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - productName = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - productReference = 7BA2B0C51C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0BD1C1276BB00E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B0C41C1276BB00E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0BC1C1276BB00E7C4BC; - productRefGroup = 7BA2B0C61C1276BB00E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B0C41C1276BB00E7C4BC /* 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0C31C1276BB00E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */, - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0C11C1276BB00E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */, - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0CD1C1276BB00E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0D21C1276BB00E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B0D51C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B0D61C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B0D81C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7BA2B0D91C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D51C1276BB00E7C4BC /* Debug */, - 7BA2B0D61C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D81C1276BB00E7C4BC /* Debug */, - 7BA2B0D91C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0BD1C1276BB00E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 52854a1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" deleted file mode 100755 index cca4025..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" deleted file mode 100755 index 3a2a49b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" deleted file mode 100755 index c489ff9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" +++ /dev/null @@ -1,44 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" deleted file mode 100755 index 72595c0..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" +++ /dev/null @@ -1,78 +0,0 @@ -// -// ViewController.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -// 鍦╯wift 閲岄潰閬靛畧鍗忚, 鏄娇鐢 閫楀彿 "," -class ViewController: UIViewController, CLLocationManagerDelegate { - - // MARK: 鎳掑姞杞戒綅缃鐞嗚 - lazy var locationM : CLLocationManager = { - - /// 1. 鍒涘缓浣嶇疆绠$悊鑰 - let tempLocationM = CLLocationManager() - /// 2. 璁剧疆浠g悊 - tempLocationM.delegate = self - - - /// 3. 棰濆璁剧疆 - // 3.1 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇 - // 浠h〃姣忛殧100绫宠幏鍙栦竴娆$敤鎴风殑浣嶇疆淇℃伅, 骞堕氳繃浠g悊鍛婅瘔澶栫晫 - tempLocationM.distanceFilter = 100 - - - // 3.2 璁剧疆瀹氫綅鐨勭簿纭害 - // 绮剧‘搴﹁秺楂, 鑾峰彇鍒板緱浣嶇疆绮惧噯搴﹁秺楂, 浣嗘槸瓒婅楃數, 瀹氫綅鏃堕棿瓒婇暱 -// kCLLocationAccuracyBestForNavigation 鏈閫傚悎瀵艰埅 -// kCLLocationAccuracyBest; 鏈濂界殑 -// kCLLocationAccuracyNearestTenMeters; 闄勮繎10绫 -// kCLLocationAccuracyHundredMeters; 闄勮繎100绫 -// kCLLocationAccuracyKilometer; 闄勮繎1000 绫 -// kCLLocationAccuracyThreeKilometers; 闄勮繎3000绫 - tempLocationM.desiredAccuracy = kCLLocationAccuracyBest - - - // 4. 鍚庡彴瀹氫綅 - // 鍦╥OS8.0涔嬪墠, 鍙渶瑕佸嬀閫夊悗鍙版ā寮忓氨鍙互 - // target -> Capabilities -> 寮鍚疊ackground Modes -> 鍕鹃 location updates - - return tempLocationM - }() - - - /// 閲嶅啓绯荤粺touchesBegan鏂规硶 - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - - /// 3. 璋冪敤鏂规硶, 寮濮嬫洿鏂扮敤鎴蜂綅缃俊鎭 - locationM.startUpdatingLocation() - - - } - - - // MARK: CLLocationManagerDelegate 浠g悊鏂规硶 - - /// 1. 鑾峰彇鍒扮敤鎴蜂綅缃箣鍚庤皟鐢 - func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - print(locations.last) - - // 鍦烘櫙1: 濡傛灉鍙渶瑕佽幏鍙栦竴娆$敤鎴蜂綅缃, 閭d箞鍦ㄦ澶勮幏鍙栧埌浣嶇疆涔嬪悗, 鍙互鍋滄鏇存柊鐢ㄦ埛浣嶇疆 -// manager.stopUpdatingLocation() - - - // 鍦烘櫙2: 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇(瑙佹噿鍔犺浇鏂规硶鍐呴儴) - - - } - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" deleted file mode 100755 index cca4025..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" deleted file mode 100755 index 3a2a49b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" deleted file mode 100755 index ad5fe94..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" +++ /dev/null @@ -1,48 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationWhenInUseUsageDescription - iOS8.0涔嬪悗鐨勫墠鍙板畾浣嶆弿杩 - NSLocationAlwaysUsageDescription - iOS8.0涔嬪悗鐨勫墠鍚庡彴瀹氫綅鎻忚堪 - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" deleted file mode 100755 index 48fd5a8..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" +++ /dev/null @@ -1,144 +0,0 @@ -// -// ViewController.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -// 鍦╯wift 閲岄潰閬靛畧鍗忚, 鏄娇鐢 閫楀彿 "," -class ViewController: UIViewController, CLLocationManagerDelegate { - - // MARK: 鎳掑姞杞戒綅缃鐞嗚 - lazy var locationM : CLLocationManager = { - - /// 1. 鍒涘缓浣嶇疆绠$悊鑰 - let tempLocationM = CLLocationManager() - - /// 2. 璁剧疆浠g悊 - tempLocationM.delegate = self - - - /// 3. 棰濆璁剧疆 - // 3.1 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇 - // 浠h〃姣忛殧100绫宠幏鍙栦竴娆$敤鎴风殑浣嶇疆淇℃伅, 骞堕氳繃浠g悊鍛婅瘔澶栫晫 -// tempLocationM.distanceFilter = 100 - - - // 3.2 璁剧疆瀹氫綅鐨勭簿纭害 - // 绮剧‘搴﹁秺楂, 鑾峰彇鍒板緱浣嶇疆绮惧噯搴﹁秺楂, 浣嗘槸瓒婅楃數, 瀹氫綅鏃堕棿瓒婇暱 -// kCLLocationAccuracyBestForNavigation 鏈閫傚悎瀵艰埅 -// kCLLocationAccuracyBest; 鏈濂界殑 -// kCLLocationAccuracyNearestTenMeters; 闄勮繎10绫 -// kCLLocationAccuracyHundredMeters; 闄勮繎100绫 -// kCLLocationAccuracyKilometer; 闄勮繎1000 绫 -// kCLLocationAccuracyThreeKilometers; 闄勮繎3000绫 - tempLocationM.desiredAccuracy = kCLLocationAccuracyBest - - - // 4. 鍚庡彴瀹氫綅 - // 鍦╥OS8.0涔嬪墠, 鍙渶瑕佸嬀閫夊悗鍙版ā寮忓氨鍙互 - // target -> Capabilities -> 寮鍚疊ackground Modes -> 鍕鹃 location updates - - - - - - /************************iOS8.0涔嬪悗瀹氫綅閫傞厤*****************************/ - - if Float(UIDevice.currentDevice().systemVersion) >= 8.0 - { - // 闇瑕佷富鍔ㄨ姹傛巿鏉 - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈, 榛樿鎯呭喌涓, 鍙兘鍦ㄥ墠鍙拌幏鍙栧埌鐢ㄦ埛浣嶇疆淇℃伅 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey - // 濡傛灉鍦ㄥ墠鍙版巿鏉冩ā寮忎笅, 鎯宠鍦ㄥ悗鍙颁篃鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅, 蹇呴』鍕鹃夊悗鍙版ā寮 location updates, 浣嗘槸姝ゆ椂濡傛灉APP 閫鍒板悗鍙, 鍦ㄥ睆骞曢《閮ㄤ細鍑虹幇涓涓摑鏉 -// tempLocationM .requestWhenInUseAuthorization() - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉, 榛樿鎯呭喌涓, 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴蜂綅缃俊鎭, 鑰屼笖涓嶉渶瑕佸嬀閫夊悗鍙版ā寮弆ocation updates. 骞朵笖涓嶄細鍑虹幇钃濇潯 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey - tempLocationM.requestAlwaysAuthorization() - - - } - - - - - return tempLocationM - }() - - - /// 閲嶅啓绯荤粺touchesBegan鏂规硶 - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - - /// 3. 璋冪敤鏂规硶, 寮濮嬫洿鏂扮敤鎴蜂綅缃俊鎭 - locationM.startUpdatingLocation() - - - } - - - // MARK: CLLocationManagerDelegate 浠g悊鏂规硶 - - /// 1. 鑾峰彇鍒扮敤鎴蜂綅缃箣鍚庤皟鐢 - func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - print(locations.last) - - // 鍦烘櫙1: 濡傛灉鍙渶瑕佽幏鍙栦竴娆$敤鎴蜂綅缃, 閭d箞鍦ㄦ澶勮幏鍙栧埌浣嶇疆涔嬪悗, 鍙互鍋滄鏇存柊鐢ㄦ埛浣嶇疆 -// manager.stopUpdatingLocation() - - - // 鍦烘櫙2: 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇(瑙佹噿鍔犺浇鏂规硶鍐呴儴) - - - } - - - /// 2. 鎺堟潈鐘舵佸彂鐢熷彉鍖栨椂璋冪敤 - func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) { - - switch status - { - case CLAuthorizationStatus.NotDetermined: - print("鐢ㄦ埛杩樻病鏈夊喅瀹") - - case CLAuthorizationStatus.Restricted: - print("鍙楅檺鍒") - - case CLAuthorizationStatus.Denied: - if CLLocationManager.locationServicesEnabled() - { - print("琚嫆缁") - // 涓鑸湪姝ゅ, 鎻愰啋鐢ㄦ埛鎺堟潈鐘舵, 骞跺脊妗嗘彁渚涘揩鎹疯烦杞埌璁剧疆鐣岄潰鐨勬柟寮 - // 璺宠浆鍒拌缃晫闈㈢殑鏍稿績浠g爜 - - // iOS 8.0 涔嬪悗 - let url:NSURL = NSURL(string: UIApplicationOpenSettingsURLString)! - if UIApplication.sharedApplication().canOpenURL(url) - { - UIApplication.sharedApplication().openURL(url) - } - } - else - { - print("瀹氫綅鏈嶅姟鍏抽棴") - // 褰撳畾浣嶆湇鍔″叧闂椂, 绯荤粺浼氳嚜鍔ㄥ脊鍑轰竴涓璇濇, 璁╃敤鎴疯烦杞埌"璁剧疆"鐣岄潰, 寮鍚畾浣嶆湇鍔, 涓嶉渶瑕佹垜浠鐞 - } - - case CLAuthorizationStatus.AuthorizedWhenInUse: - print("鍓嶅彴瀹氫綅鎺堟潈") - - case CLAuthorizationStatus.AuthorizedAlways: - print("鍓嶅悗鍙板畾浣嶆巿鏉") - - } - - } - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.pbxproj" deleted file mode 100755 index a5eb6ef..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,299 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */; }; - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */; }; - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */; }; - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */; }; - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B0C51C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B0CD1C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B0D21C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0BC1C1276BB00E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B0C71C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅 */, - 7BA2B0C61C1276BB00E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B0C61C1276BB00E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B0C51C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B0C71C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅 */ = { - isa = PBXGroup; - children = ( - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */, - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */, - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */, - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */, - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */, - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */, - ); - name = "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅"; - path = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B0C41C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅" */; - buildPhases = ( - 7BA2B0C11C1276BB00E7C4BC /* Sources */, - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */, - 7BA2B0C31C1276BB00E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅"; - productName = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - productReference = 7BA2B0C51C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0BD1C1276BB00E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B0C41C1276BB00E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0BC1C1276BB00E7C4BC; - productRefGroup = 7BA2B0C61C1276BB00E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B0C41C1276BB00E7C4BC /* 02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0C31C1276BB00E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */, - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0C11C1276BB00E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */, - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0CD1C1276BB00E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0D21C1276BB00E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B0D51C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B0D61C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B0D81C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅"; - }; - name = Debug; - }; - 7BA2B0D91C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D51C1276BB00E7C4BC /* Debug */, - 7BA2B0D61C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "02-鎺屾彙 - iOS8.0涔嬪悗瀹氫綅" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D81C1276BB00E7C4BC /* Debug */, - 7BA2B0D91C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0BD1C1276BB00E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 15e2b52..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215/02-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\220\216\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" deleted file mode 100755 index cca4025..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" deleted file mode 100755 index 3a2a49b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" deleted file mode 100755 index ad5fe94..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" +++ /dev/null @@ -1,48 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationWhenInUseUsageDescription - iOS8.0涔嬪悗鐨勫墠鍙板畾浣嶆弿杩 - NSLocationAlwaysUsageDescription - iOS8.0涔嬪悗鐨勫墠鍚庡彴瀹氫綅鎻忚堪 - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" deleted file mode 100755 index 42ceb95..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" +++ /dev/null @@ -1,169 +0,0 @@ -// -// ViewController.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -// 鍦╯wift 閲岄潰閬靛畧鍗忚, 鏄娇鐢 閫楀彿 "," -class ViewController: UIViewController, CLLocationManagerDelegate { - - // MARK: 鎳掑姞杞戒綅缃鐞嗚 - lazy var locationM : CLLocationManager = { - - /// 1. 鍒涘缓浣嶇疆绠$悊鑰 - let tempLocationM = CLLocationManager() - - /// 2. 璁剧疆浠g悊 - tempLocationM.delegate = self - - - /// 3. 棰濆璁剧疆 - // 3.1 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇 - // 浠h〃姣忛殧100绫宠幏鍙栦竴娆$敤鎴风殑浣嶇疆淇℃伅, 骞堕氳繃浠g悊鍛婅瘔澶栫晫 -// tempLocationM.distanceFilter = 100 - - - // 3.2 璁剧疆瀹氫綅鐨勭簿纭害 - // 绮剧‘搴﹁秺楂, 鑾峰彇鍒板緱浣嶇疆绮惧噯搴﹁秺楂, 浣嗘槸瓒婅楃數, 瀹氫綅鏃堕棿瓒婇暱 -// kCLLocationAccuracyBestForNavigation 鏈閫傚悎瀵艰埅 -// kCLLocationAccuracyBest; 鏈濂界殑 -// kCLLocationAccuracyNearestTenMeters; 闄勮繎10绫 -// kCLLocationAccuracyHundredMeters; 闄勮繎100绫 -// kCLLocationAccuracyKilometer; 闄勮繎1000 绫 -// kCLLocationAccuracyThreeKilometers; 闄勮繎3000绫 - tempLocationM.desiredAccuracy = kCLLocationAccuracyBest - - - // 4. 鍚庡彴瀹氫綅 - // 鍦╥OS8.0涔嬪墠, 鍙渶瑕佸嬀閫夊悗鍙版ā寮忓氨鍙互 - // target -> Capabilities -> 寮鍚疊ackground Modes -> 鍕鹃 location updates - - - - - - /************************iOS8.0涔嬪悗瀹氫綅閫傞厤*****************************/ - - if Float(UIDevice.currentDevice().systemVersion) >= 8.0 - { - // 闇瑕佷富鍔ㄨ姹傛巿鏉 - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈, 榛樿鎯呭喌涓, 鍙兘鍦ㄥ墠鍙拌幏鍙栧埌鐢ㄦ埛浣嶇疆淇℃伅 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey - // 濡傛灉鍦ㄥ墠鍙版巿鏉冩ā寮忎笅, 鎯宠鍦ㄥ悗鍙颁篃鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅, 蹇呴』鍕鹃夊悗鍙版ā寮 location updates, 浣嗘槸姝ゆ椂濡傛灉APP 閫鍒板悗鍙, 鍦ㄥ睆骞曢《閮ㄤ細鍑虹幇涓涓摑鏉 - tempLocationM .requestWhenInUseAuthorization() - - // 濡傛灉鏄痠OS9.0浠ュ悗鐨勭郴缁熺増鏈, 閭d箞, 濡傛灉鎯宠鍦ㄥ墠鍙版巿鏉冩ā寮忎笅, 鍦ㄥ悗鍙颁篃缁х画鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅. 閭d箞闄や簡鍕鹃夊悗鍙版ā寮弆ocation updates浠ュ, 杩橀渶瑕侀澶栬缃互涓嬪睘鎬т负true - if Float(UIDevice.currentDevice().systemVersion) >= 9.0 - { - tempLocationM.allowsBackgroundLocationUpdates = true - } - - - - - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉, 榛樿鎯呭喌涓, 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴蜂綅缃俊鎭, 鑰屼笖涓嶉渶瑕佸嬀閫夊悗鍙版ā寮弆ocation updates. 骞朵笖涓嶄細鍑虹幇钃濇潯 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey -// tempLocationM.requestAlwaysAuthorization() - - - } - - - - - return tempLocationM - }() - - - /// 閲嶅啓绯荤粺touchesBegan鏂规硶 - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - - /// 3. 璋冪敤鏂规硶, 寮濮嬫洿鏂扮敤鎴蜂綅缃俊鎭 -// locationM.startUpdatingLocation() - - - - /// iOS 9.0鏈鏂拌幏鍙栦綅缃俊鎭殑API - // 鍗曟浣嶇疆鑾峰彇 - // 鎸夌収瀹氫綅鐨勭簿纭害, 浠庝綆鍒伴珮, 閫愪釜杩涜瀹氫綅, 濡傛灉鍦ㄦ湁鏁堟椂闂村唴, 瀹氫綅鍒版渶楂樼殑绮剧‘搴﹀搴旂殑浣嶇疆, 閭d箞鐩存帴閫氳繃浠g悊杩斿洖浣嶇疆淇℃伅; 濡傛灉鍦ㄦ湁鏁堢殑鏃堕棿鍐, 杩樻病鏈夊畾浣嶅埌鏈楂樼殑绮剧‘搴﹀搴旂殑浣嶇疆, 閭d箞灏变細鎶婂綋鍓嶅畾浣嶅埌寰椾綅缃俊鎭氳繃浠g悊浼犻掔粰澶栫晫 - // 娉ㄦ剰: 姝ゆ柟娉, 蹇呴』瑕佹眰浠g悊瀹炵幇瀹氫綅澶辫触鐨勬柟娉,鍚﹀垯浼氬穿婧; 骞朵笖涓嶈兘涓 startUpdatingLocation 鍚屾椂浣跨敤, 鍚﹀垯浼氭棤鏁 - locationM.requestLocation() - - - } - - - // MARK: CLLocationManagerDelegate 浠g悊鏂规硶 - - /// 1. 鑾峰彇鍒扮敤鎴蜂綅缃箣鍚庤皟鐢 - func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - print(locations.last) - - // 鍦烘櫙1: 濡傛灉鍙渶瑕佽幏鍙栦竴娆$敤鎴蜂綅缃, 閭d箞鍦ㄦ澶勮幏鍙栧埌浣嶇疆涔嬪悗, 鍙互鍋滄鏇存柊鐢ㄦ埛浣嶇疆 -// manager.stopUpdatingLocation() - - - // 鍦烘櫙2: 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇(瑙佹噿鍔犺浇鏂规硶鍐呴儴) - - - } - - - /// 2. 鎺堟潈鐘舵佸彂鐢熷彉鍖栨椂璋冪敤 - func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) { - - switch status - { - case CLAuthorizationStatus.NotDetermined: - print("鐢ㄦ埛杩樻病鏈夊喅瀹") - - case CLAuthorizationStatus.Restricted: - print("鍙楅檺鍒") - - case CLAuthorizationStatus.Denied: - if CLLocationManager.locationServicesEnabled() - { - print("琚嫆缁") - // 涓鑸湪姝ゅ, 鎻愰啋鐢ㄦ埛鎺堟潈鐘舵, 骞跺脊妗嗘彁渚涘揩鎹疯烦杞埌璁剧疆鐣岄潰鐨勬柟寮 - // 璺宠浆鍒拌缃晫闈㈢殑鏍稿績浠g爜 - - // iOS 8.0 涔嬪悗 - let url:NSURL = NSURL(string: UIApplicationOpenSettingsURLString)! - if UIApplication.sharedApplication().canOpenURL(url) - { - UIApplication.sharedApplication().openURL(url) - } - } - else - { - print("瀹氫綅鏈嶅姟鍏抽棴") - // 褰撳畾浣嶆湇鍔″叧闂椂, 绯荤粺浼氳嚜鍔ㄥ脊鍑轰竴涓璇濇, 璁╃敤鎴疯烦杞埌"璁剧疆"鐣岄潰, 寮鍚畾浣嶆湇鍔, 涓嶉渶瑕佹垜浠鐞 - } - - case CLAuthorizationStatus.AuthorizedWhenInUse: - print("鍓嶅彴瀹氫綅鎺堟潈") - - case CLAuthorizationStatus.AuthorizedAlways: - print("鍓嶅悗鍙板畾浣嶆巿鏉") - - } - - } - - - /// 3. 瀹氫綅澶辫触璋冪敤鐨勪唬鐞嗘柟娉曟柟娉 - func locationManager(manager: CLLocationManager, didFailWithError error: NSError) { - print(error) - } - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.pbxproj" deleted file mode 100755 index d676cbd..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,299 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */; }; - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */; }; - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */; }; - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */; }; - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B0C51C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B0CD1C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B0D21C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0BC1C1276BB00E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B0C71C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */, - 7BA2B0C61C1276BB00E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B0C61C1276BB00E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B0C51C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B0C71C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */ = { - isa = PBXGroup; - children = ( - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */, - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */, - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */, - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */, - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */, - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */, - ); - name = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖"; - path = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B0C41C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖" */; - buildPhases = ( - 7BA2B0C11C1276BB00E7C4BC /* Sources */, - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */, - 7BA2B0C31C1276BB00E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖"; - productName = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - productReference = 7BA2B0C51C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0BD1C1276BB00E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B0C41C1276BB00E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0BC1C1276BB00E7C4BC; - productRefGroup = 7BA2B0C61C1276BB00E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B0C41C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0C31C1276BB00E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */, - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0C11C1276BB00E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */, - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0CD1C1276BB00E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0D21C1276BB00E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B0D51C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B0D61C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B0D81C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖"; - }; - name = Debug; - }; - 7BA2B0D91C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D51C1276BB00E7C4BC /* Debug */, - 7BA2B0D61C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D81C1276BB00E7C4BC /* Debug */, - 7BA2B0D91C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0BD1C1276BB00E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 162b8f0..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205/03-\346\216\214\346\217\241 - iOS9.0 \345\256\232\344\275\215\350\241\245\345\205\205.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" deleted file mode 100755 index cca4025..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" deleted file mode 100755 index 3a2a49b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" deleted file mode 100755 index ad5fe94..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/Info.plist" +++ /dev/null @@ -1,48 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIBackgroundModes - - location - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationWhenInUseUsageDescription - iOS8.0涔嬪悗鐨勫墠鍙板畾浣嶆弿杩 - NSLocationAlwaysUsageDescription - iOS8.0涔嬪悗鐨勫墠鍚庡彴瀹氫綅鎻忚堪 - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" deleted file mode 100755 index 3e87f27..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/01-\346\216\214\346\217\241 - iOS8.0\344\271\213\345\211\215\347\232\204\345\256\232\344\275\215/ViewController.swift" +++ /dev/null @@ -1,225 +0,0 @@ -// -// ViewController.swift -// 01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -// 鍦╯wift 閲岄潰閬靛畧鍗忚, 鏄娇鐢 閫楀彿 "," -class ViewController: UIViewController, CLLocationManagerDelegate { - - - // 璁板綍涓婁竴涓綅缃俊鎭 - var lastLocation:CLLocation? - - - // MARK: 鎳掑姞杞戒綅缃鐞嗚 - lazy var locationM : CLLocationManager = { - - /// 1. 鍒涘缓浣嶇疆绠$悊鑰 - let tempLocationM = CLLocationManager() - - /// 2. 璁剧疆浠g悊 - tempLocationM.delegate = self - - - /// 3. 棰濆璁剧疆 - // 3.1 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇 - // 浠h〃姣忛殧100绫宠幏鍙栦竴娆$敤鎴风殑浣嶇疆淇℃伅, 骞堕氳繃浠g悊鍛婅瘔澶栫晫 -// tempLocationM.distanceFilter = 100 - - - // 3.2 璁剧疆瀹氫綅鐨勭簿纭害 - // 绮剧‘搴﹁秺楂, 鑾峰彇鍒板緱浣嶇疆绮惧噯搴﹁秺楂, 浣嗘槸瓒婅楃數, 瀹氫綅鏃堕棿瓒婇暱 -// kCLLocationAccuracyBestForNavigation 鏈閫傚悎瀵艰埅 -// kCLLocationAccuracyBest; 鏈濂界殑 -// kCLLocationAccuracyNearestTenMeters; 闄勮繎10绫 -// kCLLocationAccuracyHundredMeters; 闄勮繎100绫 -// kCLLocationAccuracyKilometer; 闄勮繎1000 绫 -// kCLLocationAccuracyThreeKilometers; 闄勮繎3000绫 - tempLocationM.desiredAccuracy = kCLLocationAccuracyBest - - - // 4. 鍚庡彴瀹氫綅 - // 鍦╥OS8.0涔嬪墠, 鍙渶瑕佸嬀閫夊悗鍙版ā寮忓氨鍙互 - // target -> Capabilities -> 寮鍚疊ackground Modes -> 鍕鹃 location updates - - - - - - /************************iOS8.0涔嬪悗瀹氫綅閫傞厤*****************************/ - - if Float(UIDevice.currentDevice().systemVersion) >= 8.0 - { - // 闇瑕佷富鍔ㄨ姹傛巿鏉 - // 璇锋眰鍓嶅彴瀹氫綅鎺堟潈, 榛樿鎯呭喌涓, 鍙兘鍦ㄥ墠鍙拌幏鍙栧埌鐢ㄦ埛浣嶇疆淇℃伅 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey - // 濡傛灉鍦ㄥ墠鍙版巿鏉冩ā寮忎笅, 鎯宠鍦ㄥ悗鍙颁篃鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅, 蹇呴』鍕鹃夊悗鍙版ā寮 location updates, 浣嗘槸姝ゆ椂濡傛灉APP 閫鍒板悗鍙, 鍦ㄥ睆骞曢《閮ㄤ細鍑虹幇涓涓摑鏉 - tempLocationM .requestWhenInUseAuthorization() - - // 濡傛灉鏄痠OS9.0浠ュ悗鐨勭郴缁熺増鏈, 閭d箞, 濡傛灉鎯宠鍦ㄥ墠鍙版巿鏉冩ā寮忎笅, 鍦ㄥ悗鍙颁篃缁х画鑾峰彇鐢ㄦ埛浣嶇疆淇℃伅. 閭d箞闄や簡鍕鹃夊悗鍙版ā寮弆ocation updates浠ュ, 杩橀渶瑕侀澶栬缃互涓嬪睘鎬т负true - if Float(UIDevice.currentDevice().systemVersion) >= 9.0 - { - tempLocationM.allowsBackgroundLocationUpdates = true - } - - - - - - // 璇锋眰鍓嶅悗鍙板畾浣嶆巿鏉, 榛樿鎯呭喌涓, 鏃犺鍦ㄥ墠鍙, 杩樻槸鍚庡彴, 閮藉彲浠ヨ幏鍙栫敤鎴蜂綅缃俊鎭, 鑰屼笖涓嶉渶瑕佸嬀閫夊悗鍙版ā寮弆ocation updates. 骞朵笖涓嶄細鍑虹幇钃濇潯 - // 娉ㄦ剰: 涓瀹氫笉瑕佸繕璁板湪info.plist鏂囦欢閲岄潰閰嶇疆瀵瑰簲鐨刱ey -// tempLocationM.requestAlwaysAuthorization() - - - } - - - - - return tempLocationM - }() - - - /// 閲嶅啓绯荤粺touchesBegan鏂规硶 - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - - /// 3. 璋冪敤鏂规硶, 寮濮嬫洿鏂扮敤鎴蜂綅缃俊鎭 - locationM.startUpdatingLocation() - - - - /// iOS 9.0鏈鏂拌幏鍙栦綅缃俊鎭殑API - // 鍗曟浣嶇疆鑾峰彇 - // 鎸夌収瀹氫綅鐨勭簿纭害, 浠庝綆鍒伴珮, 閫愪釜杩涜瀹氫綅, 濡傛灉鍦ㄦ湁鏁堟椂闂村唴, 瀹氫綅鍒版渶楂樼殑绮剧‘搴﹀搴旂殑浣嶇疆, 閭d箞鐩存帴閫氳繃浠g悊杩斿洖浣嶇疆淇℃伅; 濡傛灉鍦ㄦ湁鏁堢殑鏃堕棿鍐, 杩樻病鏈夊畾浣嶅埌鏈楂樼殑绮剧‘搴﹀搴旂殑浣嶇疆, 閭d箞灏变細鎶婂綋鍓嶅畾浣嶅埌寰椾綅缃俊鎭氳繃浠g悊浼犻掔粰澶栫晫 - // 娉ㄦ剰: 姝ゆ柟娉, 蹇呴』瑕佹眰浠g悊瀹炵幇瀹氫綅澶辫触鐨勬柟娉,鍚﹀垯浼氬穿婧; 骞朵笖涓嶈兘涓 startUpdatingLocation 鍚屾椂浣跨敤, 鍚﹀垯浼氭棤鏁 -// locationM.requestLocation() - - - } - - - // MARK: CLLocationManagerDelegate 浠g悊鏂规硶 - - /// 1. 鑾峰彇鍒扮敤鎴蜂綅缃箣鍚庤皟鐢 - func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - - // print(locations.last) - - // 鍦烘櫙1: 濡傛灉鍙渶瑕佽幏鍙栦竴娆$敤鎴蜂綅缃, 閭d箞鍦ㄦ澶勮幏鍙栧埌浣嶇疆涔嬪悗, 鍙互鍋滄鏇存柊鐢ㄦ埛浣嶇疆 -// manager.stopUpdatingLocation() - - - // 鍦烘櫙2: 濡傛灉閽堝浜庡鑸簲鐢, 闇瑕佹瘡闅斿杩滄洿鏂颁竴娆$敤鎴蜂綅缃, 鍙互閫氳繃璁剧疆鐗瑰畾灞炴ф潵瀹炵幇(瑙佹噿鍔犺浇鏂规硶鍐呴儴) - - - - - /// 鍦烘櫙婕旂粌 : 鎵撳嵃褰撳墠鐢ㄦ埛鐨勮璧版柟鍚,鍋忕瑙掑害浠ュ強瀵瑰簲鐨勮璧拌窛绂, - // 渚嬪:鈥濆寳鍋忎笢30搴︽柟鍚,绉诲姩浜8绫斥 - - // 0. 鑾峰彇鏈鏂颁綅缃俊鎭 - let location:CLLocation? = locations.last - - // 0.1 鍒ゆ柇褰撳墠浣嶇疆鏁版嵁鏄惁鍙敤 - if location?.horizontalAccuracy < 0 - { - return - } - - // 1. 鑾峰彇鍋忕鏂瑰悜 - let angleStrArray : Array = Array(arrayLiteral: "鍖楀亸涓", "涓滃亸鍗", "鍗楀亸瑗", "瑗垮亸鍖") - let index:Int = Int((location?.course)!) / 90 - var angleStr = angleStrArray[index] - - // 2. 鑾峰彇鍋忕瑙掑害 - let angle:Int = Int((location?.course)!) % 90 - - // 2.1 鍒ゆ柇鏄惁鏄鏂瑰悜 - if angle == 0 - { - let toIndex:String.Index = angleStr.startIndex.advancedBy(1) - angleStr = "姝" + angleStr.substringToIndex(toIndex) - } - - - // 3. 鑾峰彇绉诲姩璺濈 - if lastLocation == nil - { - lastLocation = location - } - let distance:Double = location!.distanceFromLocation(lastLocation!) - lastLocation = location - - // 4. 鎵撳嵃 - var noticeStr : String? - if angle == 0 - { - noticeStr = angleStr + "鏂瑰悜, 绉诲姩浜哱(distance)绫" - }else - { - noticeStr = angleStr + String(angle) + "搴︽柟鍚, 绉诲姩浜哱(distance)绫" - } - - print(noticeStr!) - - } - - - /// 2. 鎺堟潈鐘舵佸彂鐢熷彉鍖栨椂璋冪敤 - func locationManager(manager: CLLocationManager, didChangeAuthorizationStatus status: CLAuthorizationStatus) { - - switch status - { - case CLAuthorizationStatus.NotDetermined: - print("鐢ㄦ埛杩樻病鏈夊喅瀹") - - case CLAuthorizationStatus.Restricted: - print("鍙楅檺鍒") - - case CLAuthorizationStatus.Denied: - if CLLocationManager.locationServicesEnabled() - { - print("琚嫆缁") - // 涓鑸湪姝ゅ, 鎻愰啋鐢ㄦ埛鎺堟潈鐘舵, 骞跺脊妗嗘彁渚涘揩鎹疯烦杞埌璁剧疆鐣岄潰鐨勬柟寮 - // 璺宠浆鍒拌缃晫闈㈢殑鏍稿績浠g爜 - - // iOS 8.0 涔嬪悗 - let url:NSURL = NSURL(string: UIApplicationOpenSettingsURLString)! - if UIApplication.sharedApplication().canOpenURL(url) - { - UIApplication.sharedApplication().openURL(url) - } - } - else - { - print("瀹氫綅鏈嶅姟鍏抽棴") - // 褰撳畾浣嶆湇鍔″叧闂椂, 绯荤粺浼氳嚜鍔ㄥ脊鍑轰竴涓璇濇, 璁╃敤鎴疯烦杞埌"璁剧疆"鐣岄潰, 寮鍚畾浣嶆湇鍔, 涓嶉渶瑕佹垜浠鐞 - } - - case CLAuthorizationStatus.AuthorizedWhenInUse: - print("鍓嶅彴瀹氫綅鎺堟潈") - - case CLAuthorizationStatus.AuthorizedAlways: - print("鍓嶅悗鍙板畾浣嶆巿鏉") - - } - - } - - - /// 3. 瀹氫綅澶辫触璋冪敤鐨勪唬鐞嗘柟娉曟柟娉 - func locationManager(manager: CLLocationManager, didFailWithError error: NSError) { - print(error) - } - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.pbxproj" deleted file mode 100755 index c647d77..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,299 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */; }; - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */; }; - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */; }; - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */; }; - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B0C51C1276BB00E7C4BC /* 04-鎺屾彙 - CLLocation瀵硅薄璇﹁В.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B0CD1C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B0D21C1276BB00E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0BC1C1276BB00E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B0C71C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */, - 7BA2B0C61C1276BB00E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B0C61C1276BB00E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B0C51C1276BB00E7C4BC /* 04-鎺屾彙 - CLLocation瀵硅薄璇﹁В.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B0C71C1276BB00E7C4BC /* 03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖 */ = { - isa = PBXGroup; - children = ( - 7BA2B0C81C1276BB00E7C4BC /* AppDelegate.swift */, - 7BA2B0CA1C1276BB00E7C4BC /* ViewController.swift */, - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */, - 7BA2B0CF1C1276BB00E7C4BC /* Assets.xcassets */, - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */, - 7BA2B0D41C1276BB00E7C4BC /* Info.plist */, - ); - name = "03-鎺屾彙 - iOS9.0 瀹氫綅琛ュ厖"; - path = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B0C41C1276BB00E7C4BC /* 04-鎺屾彙 - CLLocation瀵硅薄璇﹁В */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В" */; - buildPhases = ( - 7BA2B0C11C1276BB00E7C4BC /* Sources */, - 7BA2B0C21C1276BB00E7C4BC /* Frameworks */, - 7BA2B0C31C1276BB00E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В"; - productName = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣"; - productReference = 7BA2B0C51C1276BB00E7C4BC /* 04-鎺屾彙 - CLLocation瀵硅薄璇﹁В.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0BD1C1276BB00E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B0C41C1276BB00E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0BC1C1276BB00E7C4BC; - productRefGroup = 7BA2B0C61C1276BB00E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B0C41C1276BB00E7C4BC /* 04-鎺屾彙 - CLLocation瀵硅薄璇﹁В */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0C31C1276BB00E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0D31C1276BB00E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B0D01C1276BB00E7C4BC /* Assets.xcassets in Resources */, - 7BA2B0CE1C1276BB00E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0C11C1276BB00E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0CB1C1276BB00E7C4BC /* ViewController.swift in Sources */, - 7BA2B0C91C1276BB00E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B0CC1C1276BB00E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0CD1C1276BB00E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B0D11C1276BB00E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0D21C1276BB00E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B0D51C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B0D61C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B0D81C1276BB00E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В"; - }; - name = Debug; - }; - 7BA2B0D91C1276BB00E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "01-鎺屾彙 - iOS8.0涔嬪墠鐨勫畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-1------iOS8-0-----"; - PRODUCT_NAME = "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0C01C1276BB00E7C4BC /* Build configuration list for PBXProject "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D51C1276BB00E7C4BC /* Debug */, - 7BA2B0D61C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B0D71C1276BB00E7C4BC /* Build configuration list for PBXNativeTarget "04-鎺屾彙 - CLLocation瀵硅薄璇﹁В" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0D81C1276BB00E7C4BC /* Debug */, - 7BA2B0D91C1276BB00E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0BD1C1276BB00E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index f9061a4..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243/04-\346\216\214\346\217\241 - CLLocation\345\257\271\350\261\241\350\257\246\350\247\243.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.pbxproj" deleted file mode 100755 index ece4a16..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,293 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B0E71C12E9E300E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0E61C12E9E300E7C4BC /* AppDelegate.swift */; }; - 7BA2B0E91C12E9E300E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B0E81C12E9E300E7C4BC /* ViewController.swift */; }; - 7BA2B0EC1C12E9E300E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0EA1C12E9E300E7C4BC /* Main.storyboard */; }; - 7BA2B0EE1C12E9E300E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0ED1C12E9E300E7C4BC /* Assets.xcassets */; }; - 7BA2B0F11C12E9E300E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B0EF1C12E9E300E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B0E31C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B0E61C12E9E300E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B0E81C12E9E300E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B0EB1C12E9E300E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B0ED1C12E9E300E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B0F01C12E9E300E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B0F21C12E9E300E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0E01C12E9E300E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0DA1C12E9E300E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B0E51C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 */, - 7BA2B0E41C12E9E300E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B0E41C12E9E300E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B0E31C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B0E51C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 */ = { - isa = PBXGroup; - children = ( - 7BA2B0E61C12E9E300E7C4BC /* AppDelegate.swift */, - 7BA2B0E81C12E9E300E7C4BC /* ViewController.swift */, - 7BA2B0EA1C12E9E300E7C4BC /* Main.storyboard */, - 7BA2B0ED1C12E9E300E7C4BC /* Assets.xcassets */, - 7BA2B0EF1C12E9E300E7C4BC /* LaunchScreen.storyboard */, - 7BA2B0F21C12E9E300E7C4BC /* Info.plist */, - ); - path = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B0E21C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B0F51C12E9E300E7C4BC /* Build configuration list for PBXNativeTarget "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜" */; - buildPhases = ( - 7BA2B0DF1C12E9E300E7C4BC /* Sources */, - 7BA2B0E01C12E9E300E7C4BC /* Frameworks */, - 7BA2B0E11C12E9E300E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜"; - productName = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜"; - productReference = 7BA2B0E31C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0DB1C12E9E300E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B0E21C12E9E300E7C4BC = { - CreatedOnToolsVersion = 7.1; - }; - }; - }; - buildConfigurationList = 7BA2B0DE1C12E9E300E7C4BC /* Build configuration list for PBXProject "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0DA1C12E9E300E7C4BC; - productRefGroup = 7BA2B0E41C12E9E300E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B0E21C12E9E300E7C4BC /* 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0E11C12E9E300E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0F11C12E9E300E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B0EE1C12E9E300E7C4BC /* Assets.xcassets in Resources */, - 7BA2B0EC1C12E9E300E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0DF1C12E9E300E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B0E91C12E9E300E7C4BC /* ViewController.swift in Sources */, - 7BA2B0E71C12E9E300E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B0EA1C12E9E300E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0EB1C12E9E300E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B0EF1C12E9E300E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B0F01C12E9E300E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B0F31C12E9E300E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B0F41C12E9E300E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B0F61C12E9E300E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - INFOPLIST_FILE = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-5-------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7BA2B0F71C12E9E300E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_IDENTITY = "iPhone Developer"; - INFOPLIST_FILE = "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-5-------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0DE1C12E9E300E7C4BC /* Build configuration list for PBXProject "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0F31C12E9E300E7C4BC /* Debug */, - 7BA2B0F41C12E9E300E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B0F51C12E9E300E7C4BC /* Build configuration list for PBXNativeTarget "05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B0F61C12E9E300E7C4BC /* Debug */, - 7BA2B0F71C12E9E300E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0DB1C12E9E300E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 40f1b9e..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/AppDelegate.swift" deleted file mode 100755 index 9d5ab89..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/Contents.json" deleted file mode 100755 index da4a164..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/Contents.json" +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/Contents.json" deleted file mode 100755 index fe593e0..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/Contents.json" +++ /dev/null @@ -1,21 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "bg_compasspointer.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/bg_compasspointer.png" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/bg_compasspointer.png" deleted file mode 100755 index 1c7858a..0000000 Binary files "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Assets.xcassets/bg_compasspointer.imageset/bg_compasspointer.png" and /dev/null differ diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/Main.storyboard" deleted file mode 100755 index e8b8338..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Info.plist" deleted file mode 100755 index 6905cc6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/Info.plist" +++ /dev/null @@ -1,40 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/ViewController.swift" deleted file mode 100755 index ebcfdad..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/05-\344\272\206\350\247\243 - \346\214\207\345\215\227\351\222\210\346\225\210\346\236\234\345\256\236\347\216\260/ViewController.swift" +++ /dev/null @@ -1,68 +0,0 @@ -// -// ViewController.swift -// 05-浜嗚В - 鎸囧崡閽堟晥鏋滃疄鐜 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -class ViewController: UIViewController, CLLocationManagerDelegate { - - @IBOutlet weak var compassView: UIImageView! - - - // MARK: 鎳掑姞杞 - lazy var locationM : CLLocationManager = { - - // 鍒涘缓浣嶇疆绠$悊鑰呭璞 - let tempLocation : CLLocationManager = CLLocationManager() - // 璁剧疆浠g悊 - tempLocation.delegate = self - return tempLocation - - }() - - override func viewDidLoad() { - super.viewDidLoad() - - // 鍒ゆ柇鏄惁鍙互鑾峰彇褰撳墠璁惧鏈濆悜 - if CLLocationManager.headingAvailable() - { - // 寮濮嬭幏鍙栫敤鎴疯澶囩殑鏈濆悜 - locationM.startUpdatingHeading() - } - - } - - - // MARK: CLLocationManagerDelegate - func locationManager(manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) { - - // 鑾峰彇褰撳墠鐨勬墜鏈烘湞鍚戜箣鍓, 鍏堝垽鏂暟鎹槸鍚︽湁鏁 - if newHeading.headingAccuracy < 0 - { - return - } - - // 1. 鑾峰彇璁惧鏈濆悜(璺濈纾佸寳鐨勮搴, 鎴栬呰窛绂荤湡鍖楃殑瑙掑害) - let angle = newHeading.magneticHeading - - // 1.1 杞崲鎴愪负寮у害 - let radian = CGFloat(angle / 180.0 * M_PI) - - // 2. 鍙嶅悜鏃嬭浆鍥剧墖 - UIView.animateWithDuration(0.5) { () -> Void in - self.compassView.transform = CGAffineTransformMakeRotation(-radian) - }; - - - - } - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" deleted file mode 100755 index bec81e9..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,292 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B1051C12EDF700E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1041C12EDF700E7C4BC /* AppDelegate.swift */; }; - 7BA2B1071C12EDF700E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1061C12EDF700E7C4BC /* ViewController.swift */; }; - 7BA2B10A1C12EDF700E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1081C12EDF700E7C4BC /* Main.storyboard */; }; - 7BA2B10C1C12EDF700E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B10B1C12EDF700E7C4BC /* Assets.xcassets */; }; - 7BA2B10F1C12EDF700E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B10D1C12EDF700E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B1011C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "06-浜嗚В - 鍖哄煙鐩戝惉.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B1041C12EDF700E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B1061C12EDF700E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B1091C12EDF700E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B10B1C12EDF700E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B10E1C12EDF700E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B1101C12EDF700E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B0FE1C12EDF700E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B0F81C12EDF700E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B1031C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉 */, - 7BA2B1021C12EDF700E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B1021C12EDF700E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B1011C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B1031C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉 */ = { - isa = PBXGroup; - children = ( - 7BA2B1041C12EDF700E7C4BC /* AppDelegate.swift */, - 7BA2B1061C12EDF700E7C4BC /* ViewController.swift */, - 7BA2B1081C12EDF700E7C4BC /* Main.storyboard */, - 7BA2B10B1C12EDF700E7C4BC /* Assets.xcassets */, - 7BA2B10D1C12EDF700E7C4BC /* LaunchScreen.storyboard */, - 7BA2B1101C12EDF700E7C4BC /* Info.plist */, - ); - path = "06-浜嗚В - 鍖哄煙鐩戝惉"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B1001C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B1131C12EDF700E7C4BC /* Build configuration list for PBXNativeTarget "06-浜嗚В - 鍖哄煙鐩戝惉" */; - buildPhases = ( - 7BA2B0FD1C12EDF700E7C4BC /* Sources */, - 7BA2B0FE1C12EDF700E7C4BC /* Frameworks */, - 7BA2B0FF1C12EDF700E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "06-浜嗚В - 鍖哄煙鐩戝惉"; - productName = "06-浜嗚В - 鍖哄煙鐩戝惉"; - productReference = 7BA2B1011C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B0F91C12EDF700E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B1001C12EDF700E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - }; - }; - }; - buildConfigurationList = 7BA2B0FC1C12EDF700E7C4BC /* Build configuration list for PBXProject "06-浜嗚В - 鍖哄煙鐩戝惉" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B0F81C12EDF700E7C4BC; - productRefGroup = 7BA2B1021C12EDF700E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B1001C12EDF700E7C4BC /* 06-浜嗚В - 鍖哄煙鐩戝惉 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B0FF1C12EDF700E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B10F1C12EDF700E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B10C1C12EDF700E7C4BC /* Assets.xcassets in Resources */, - 7BA2B10A1C12EDF700E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B0FD1C12EDF700E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B1071C12EDF700E7C4BC /* ViewController.swift in Sources */, - 7BA2B1051C12EDF700E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B1081C12EDF700E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B1091C12EDF700E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B10D1C12EDF700E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B10E1C12EDF700E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B1111C12EDF700E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B1121C12EDF700E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B1141C12EDF700E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "06-浜嗚В - 鍖哄煙鐩戝惉/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-6----------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7BA2B1151C12EDF700E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "06-浜嗚В - 鍖哄煙鐩戝惉/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-6----------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B0FC1C12EDF700E7C4BC /* Build configuration list for PBXProject "06-浜嗚В - 鍖哄煙鐩戝惉" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1111C12EDF700E7C4BC /* Debug */, - 7BA2B1121C12EDF700E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B1131C12EDF700E7C4BC /* Build configuration list for PBXNativeTarget "06-浜嗚В - 鍖哄煙鐩戝惉" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1141C12EDF700E7C4BC /* Debug */, - 7BA2B1151C12EDF700E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B0F91C12EDF700E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 0090e2d..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.swift" deleted file mode 100755 index c0d1207..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 06-浜嗚В - 鍖哄煙鐩戝惉 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" deleted file mode 100755 index 75a40e6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" deleted file mode 100755 index 3e0cd83..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/Info.plist" +++ /dev/null @@ -1,42 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationAlwaysUsageDescription - 鍖哄煙鐩戝惉 - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/ViewController.swift" deleted file mode 100755 index 40efd5a..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/06-\344\272\206\350\247\243 - \345\214\272\345\237\237\347\233\221\345\220\254/ViewController.swift" +++ /dev/null @@ -1,100 +0,0 @@ -// -// ViewController.swift -// 06-浜嗚В - 鍖哄煙鐩戝惉 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -class ViewController: UIViewController, CLLocationManagerDelegate { - - @IBOutlet weak var noticeLabel: UILabel! - - // MARK: 鎳掑姞杞 - lazy var locationM : CLLocationManager = { - - let tempLocationM : CLLocationManager = CLLocationManager() - tempLocationM.delegate = self - - - // 娉ㄦ剰: 鍖哄煙鐩戝惉, 闇瑕佽姹傜敤鎴风殑瀹氫綅鎺堟潈. 鍥犱负绯荤粺蹇呴』鐭ラ亾浣犲湪鍝, 鎵嶈兘鍒ゅ畾, 浣犳槸鍚﹀湪鍖哄煙鍐呴儴 - if Float(UIDevice.currentDevice().systemVersion) >= 8.0 - { - tempLocationM.requestAlwaysAuthorization() - } - - return tempLocationM - }() - - - - override func viewDidLoad() { - super.viewDidLoad() - - - // 鍒ゅ畾鏄惁鍙互鐩戝惉鍖哄煙 - if !CLLocationManager.isMonitoringAvailableForClass(CLCircularRegion) - { - return; - } - - - // 鎸囧畾鍖哄煙涓績 - let center : CLLocationCoordinate2D = CLLocationCoordinate2DMake(21.123, 121.234) - - // 鎸囧畾鍖哄煙鍗婂緞 - var distance : CLLocationDistance = 1000.0 - // 娉ㄦ剰: 鍖哄煙鍗婂緞涓嶈兘澶т簬鏈澶х洃鍚崐寰 - if distance > locationM.maximumRegionMonitoringDistance - { - distance = locationM.maximumRegionMonitoringDistance - } - - - // 鍒涘缓涓涓尯鍩 - let region : CLCircularRegion = CLCircularRegion(center: center, radius: distance, identifier: "灏忕爜鍝") - - // 寮濮嬬洃鍚尯鍩 - locationM.startMonitoringForRegion(region) - - // 璇锋眰鍖哄煙鐘舵 - locationM.requestStateForRegion(region) - } - - - - // MARK: CLLocationManagerDelegate 浠g悊鏂规硶 - - // 杩涘叆鏌愪釜鍖哄煙鏃惰皟鐢 - func locationManager(manager: CLLocationManager, didEnterRegion region: CLRegion) { - self.noticeLabel.text = "杩涘叆鍖哄煙" + region.identifier - } - - // 绂诲紑鏌愪釜鍖哄煙鏃惰皟鐢 - func locationManager(manager: CLLocationManager, didExitRegion region: CLRegion) { - self.noticeLabel.text = "绂诲紑鍖哄煙" + region.identifier - } - - - // 褰撹姹傚尯鍩熺姸鎬佺殑鏃跺欒皟鐢 - func locationManager(manager: CLLocationManager, didDetermineState state: CLRegionState, forRegion region: CLRegion) { - if state == CLRegionState.Inside - { - self.noticeLabel.text = "杩涘叆鍖哄煙" + region.identifier - } - else - { - self.noticeLabel.text = "绂诲紑鍖哄煙" + region.identifier - } - } - - - - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" deleted file mode 100755 index f320669..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,292 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B1231C130EB500E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1221C130EB500E7C4BC /* AppDelegate.swift */; }; - 7BA2B1251C130EB500E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1241C130EB500E7C4BC /* ViewController.swift */; }; - 7BA2B1281C130EB500E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1261C130EB500E7C4BC /* Main.storyboard */; }; - 7BA2B12A1C130EB500E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1291C130EB500E7C4BC /* Assets.xcassets */; }; - 7BA2B12D1C130EB500E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B12B1C130EB500E7C4BC /* LaunchScreen.storyboard */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B11F1C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B1221C130EB500E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B1241C130EB500E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B1271C130EB500E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B1291C130EB500E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B12C1C130EB500E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B12E1C130EB500E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B11C1C130EB500E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B1161C130EB400E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B1211C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 */, - 7BA2B1201C130EB500E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B1201C130EB500E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B11F1C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B1211C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 */ = { - isa = PBXGroup; - children = ( - 7BA2B1221C130EB500E7C4BC /* AppDelegate.swift */, - 7BA2B1241C130EB500E7C4BC /* ViewController.swift */, - 7BA2B1261C130EB500E7C4BC /* Main.storyboard */, - 7BA2B1291C130EB500E7C4BC /* Assets.xcassets */, - 7BA2B12B1C130EB500E7C4BC /* LaunchScreen.storyboard */, - 7BA2B12E1C130EB500E7C4BC /* Info.plist */, - ); - path = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B11E1C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B1311C130EB500E7C4BC /* Build configuration list for PBXNativeTarget "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜" */; - buildPhases = ( - 7BA2B11B1C130EB500E7C4BC /* Sources */, - 7BA2B11C1C130EB500E7C4BC /* Frameworks */, - 7BA2B11D1C130EB500E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜"; - productName = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜"; - productReference = 7BA2B11F1C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B1171C130EB400E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B11E1C130EB500E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - }; - }; - }; - buildConfigurationList = 7BA2B11A1C130EB400E7C4BC /* Build configuration list for PBXProject "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B1161C130EB400E7C4BC; - productRefGroup = 7BA2B1201C130EB500E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B11E1C130EB500E7C4BC /* 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B11D1C130EB500E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B12D1C130EB500E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B12A1C130EB500E7C4BC /* Assets.xcassets in Resources */, - 7BA2B1281C130EB500E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B11B1C130EB500E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B1251C130EB500E7C4BC /* ViewController.swift in Sources */, - 7BA2B1231C130EB500E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B1261C130EB500E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B1271C130EB500E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B12B1C130EB500E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B12C1C130EB500E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B12F1C130EB500E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B1301C130EB500E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B1321C130EB500E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-7-------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7BA2B1331C130EB500E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-7-------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B11A1C130EB400E7C4BC /* Build configuration list for PBXProject "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B12F1C130EB500E7C4BC /* Debug */, - 7BA2B1301C130EB500E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B1311C130EB500E7C4BC /* Build configuration list for PBXNativeTarget "07-鎺屾彙 - (鍙)鍦扮悊缂栫爜" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1321C130EB500E7C4BC /* Debug */, - 7BA2B1331C130EB500E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B1171C130EB400E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 9335fe6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.swift" deleted file mode 100755 index d9b784f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" deleted file mode 100755 index bd5e52f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" deleted file mode 100755 index 6905cc6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/Info.plist" +++ /dev/null @@ -1,40 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.swift" deleted file mode 100755 index a4ea1b6..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/07-\346\216\214\346\217\241 - (\345\217\215)\345\234\260\347\220\206\347\274\226\347\240\201/ViewController.swift" +++ /dev/null @@ -1,108 +0,0 @@ -// -// ViewController.swift -// 07-鎺屾彙 - (鍙)鍦扮悊缂栫爜 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -class ViewController: UIViewController { - - - @IBOutlet weak var addressTV: UITextView! - - @IBOutlet weak var latitudeTF: UITextField! - - @IBOutlet weak var longitudeTF: UITextField! - - - - // MARK: 鎳掑姞杞 - lazy var geoCoder : CLGeocoder = - { - let tempGeoCoder : CLGeocoder = CLGeocoder() - - return tempGeoCoder - }() - - - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - view.endEditing(true) - } - - - - - - - // MARK: 鑷畾涔夋柟娉 - - // 鍦扮悊缂栫爜: 鍦板潃 --> 缁忕含搴 - @IBAction func geoCode() - { - - let address = self.addressTV.text - - // 鏍规嵁鍦板潃鍏抽敭瀛楄繘琛屽湴鐞嗙紪鐮 - geoCoder.geocodeAddressString(address) { - (placeMarks, error) -> Void in - - /** - * CLPlacemark : 鍦版爣瀵硅薄 - location : 鍦版爣瀵硅薄瀵瑰簲鐨勪綅缃璞 - name : 鍦板潃鍏ㄧО - thoroughfare : 琛楅亾鍚嶇О - */ - if error == nil - { - let placeMark = placeMarks?.first - self.addressTV.text = placeMark?.name - self.latitudeTF.text = String(placeMark!.location!.coordinate.latitude) - self.longitudeTF.text = String(placeMark!.location!.coordinate.longitude) - - } - - } - - } - - - // 鍦扮悊缂栫爜: 缁忕含搴 --> 鍦板潃 - @IBAction func reverseGeoCode() - { - - // 瀹归敊澶勭悊, 鍒ゆ柇鏄惁鏈夎緭鍏ュ唴瀹 - if self.latitudeTF.text?.lengthOfBytesUsingEncoding(NSUTF8StringEncoding) == 0 || self.longitudeTF.text?.lengthOfBytesUsingEncoding(NSUTF8StringEncoding) == 0 - { - return - } - - // 鍙栧嚭缁忕含搴 - let latitude = Double(self.latitudeTF.text!)! - let lognitude = Double(self.longitudeTF.text!)! - - // 鏍规嵁缁忕含搴﹀垱寤轰綅缃璞 - let location:CLLocation = CLLocation(latitude: latitude, longitude: lognitude) - - // 鏍规嵁浣嶇疆瀵硅薄, 璁版у弽鍦扮悊缂栫爜 - geoCoder .reverseGeocodeLocation(location) { - (placeMarks, error) -> Void in - - if error == nil - { - let placeMark = placeMarks?.first - self.addressTV.text = placeMark?.name - self.latitudeTF.text = String(placeMark!.location!.coordinate.latitude) - self.longitudeTF.text = String(placeMark!.location!.coordinate.longitude) - - } - - } - - } - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.pbxproj" deleted file mode 100755 index 9648233..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,328 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B1411C132AE800E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1401C132AE800E7C4BC /* AppDelegate.swift */; }; - 7BA2B1431C132AE800E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1421C132AE800E7C4BC /* ViewController.swift */; }; - 7BA2B1461C132AE800E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1441C132AE800E7C4BC /* Main.storyboard */; }; - 7BA2B1481C132AE800E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1471C132AE800E7C4BC /* Assets.xcassets */; }; - 7BA2B14B1C132AE800E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1491C132AE800E7C4BC /* LaunchScreen.storyboard */; }; - 7BA2B15A1C132B0100E7C4BC /* INTULocationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1561C132B0100E7C4BC /* INTULocationManager.m */; }; - 7BA2B15B1C132B0100E7C4BC /* INTULocationRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1581C132B0100E7C4BC /* INTULocationRequest.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B13D1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B1401C132AE800E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B1421C132AE800E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B1451C132AE800E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B1471C132AE800E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B14A1C132AE800E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B14C1C132AE800E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 7BA2B1541C132B0100E7C4BC /* INTULocationManager+Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "INTULocationManager+Internal.h"; sourceTree = ""; }; - 7BA2B1551C132B0100E7C4BC /* INTULocationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationManager.h; sourceTree = ""; }; - 7BA2B1561C132B0100E7C4BC /* INTULocationManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = INTULocationManager.m; sourceTree = ""; }; - 7BA2B1571C132B0100E7C4BC /* INTULocationRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationRequest.h; sourceTree = ""; }; - 7BA2B1581C132B0100E7C4BC /* INTULocationRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = INTULocationRequest.m; sourceTree = ""; }; - 7BA2B1591C132B0100E7C4BC /* INTULocationRequestDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = INTULocationRequestDefines.h; sourceTree = ""; }; - 7BA2B15C1C132B6100E7C4BC /* OCSWBridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OCSWBridge.h; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B13A1C132AE800E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B1341C132AE800E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B13F1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 */, - 7BA2B13E1C132AE800E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B13E1C132AE800E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B13D1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B13F1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 */ = { - isa = PBXGroup; - children = ( - 7BA2B1521C132B0100E7C4BC /* Lib */, - 7BA2B1401C132AE800E7C4BC /* AppDelegate.swift */, - 7BA2B1421C132AE800E7C4BC /* ViewController.swift */, - 7BA2B1441C132AE800E7C4BC /* Main.storyboard */, - 7BA2B1471C132AE800E7C4BC /* Assets.xcassets */, - 7BA2B1491C132AE800E7C4BC /* LaunchScreen.storyboard */, - 7BA2B14C1C132AE800E7C4BC /* Info.plist */, - 7BA2B15C1C132B6100E7C4BC /* OCSWBridge.h */, - ); - path = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣"; - sourceTree = ""; - }; - 7BA2B1521C132B0100E7C4BC /* Lib */ = { - isa = PBXGroup; - children = ( - 7BA2B1531C132B0100E7C4BC /* INTULocationManager */, - ); - path = Lib; - sourceTree = ""; - }; - 7BA2B1531C132B0100E7C4BC /* INTULocationManager */ = { - isa = PBXGroup; - children = ( - 7BA2B1541C132B0100E7C4BC /* INTULocationManager+Internal.h */, - 7BA2B1551C132B0100E7C4BC /* INTULocationManager.h */, - 7BA2B1561C132B0100E7C4BC /* INTULocationManager.m */, - 7BA2B1571C132B0100E7C4BC /* INTULocationRequest.h */, - 7BA2B1581C132B0100E7C4BC /* INTULocationRequest.m */, - 7BA2B1591C132B0100E7C4BC /* INTULocationRequestDefines.h */, - ); - path = INTULocationManager; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B13C1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B14F1C132AE800E7C4BC /* Build configuration list for PBXNativeTarget "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣" */; - buildPhases = ( - 7BA2B1391C132AE800E7C4BC /* Sources */, - 7BA2B13A1C132AE800E7C4BC /* Frameworks */, - 7BA2B13B1C132AE800E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣"; - productName = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣"; - productReference = 7BA2B13D1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B1351C132AE800E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B13C1C132AE800E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - }; - }; - }; - buildConfigurationList = 7BA2B1381C132AE800E7C4BC /* Build configuration list for PBXProject "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B1341C132AE800E7C4BC; - productRefGroup = 7BA2B13E1C132AE800E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B13C1C132AE800E7C4BC /* 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B13B1C132AE800E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B14B1C132AE800E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B1481C132AE800E7C4BC /* Assets.xcassets in Resources */, - 7BA2B1461C132AE800E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B1391C132AE800E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B15A1C132B0100E7C4BC /* INTULocationManager.m in Sources */, - 7BA2B1431C132AE800E7C4BC /* ViewController.swift in Sources */, - 7BA2B15B1C132B0100E7C4BC /* INTULocationRequest.m in Sources */, - 7BA2B1411C132AE800E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B1441C132AE800E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B1451C132AE800E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B1491C132AE800E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B14A1C132AE800E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B14D1C132AE800E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B14E1C132AE800E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B1501C132AE800E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-8-----------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣/OCSWBridge.h"; - }; - name = Debug; - }; - 7BA2B1511C132AE800E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-8-----------------"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣/OCSWBridge.h"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B1381C132AE800E7C4BC /* Build configuration list for PBXProject "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B14D1C132AE800E7C4BC /* Debug */, - 7BA2B14E1C132AE800E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B14F1C132AE800E7C4BC /* Build configuration list for PBXNativeTarget "08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1501C132AE800E7C4BC /* Debug */, - 7BA2B1511C132AE800E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B1351C132AE800E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 033f959..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/AppDelegate.swift" deleted file mode 100755 index e742bec..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 2e721e1..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/Main.storyboard" deleted file mode 100755 index 3a2a49b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Info.plist" deleted file mode 100755 index 237490b..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Info.plist" +++ /dev/null @@ -1,42 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - NSLocationAlwaysUsageDescription - 瀹氫綅鎻忚堪 - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager+Internal.h" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager+Internal.h" deleted file mode 100755 index 86deb31..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager+Internal.h" +++ /dev/null @@ -1,33 +0,0 @@ -// -// INTULocationManager+Internal.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationManager.h" - -/** - A category that exposes the internal (private) helper methods of INTULocationManager. - */ -@interface INTULocationManager (Internal) - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.h" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.h" deleted file mode 100755 index f9572ee..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.h" +++ /dev/null @@ -1,111 +0,0 @@ -// -// INTULocationManager.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequestDefines.h" - -//! Project version number for INTULocationManager. -FOUNDATION_EXPORT double INTULocationManagerVersionNumber; - -//! Project version string for INTULocationManager. -FOUNDATION_EXPORT const unsigned char INTULocationManagerVersionString[]; - - -/** - An abstraction around CLLocationManager that provides a block-based asynchronous API for obtaining the device's location. - INTULocationManager automatically starts and stops system location services as needed to minimize battery drain. - */ -@interface INTULocationManager : NSObject - -/** Returns the current state of location services for this app, based on the system settings and user authorization status. */ -+ (INTULocationServicesState)locationServicesState; - -/** Returns the singleton instance of this class. */ -+ (instancetype)sharedInstance; - -/** - Asynchronously requests the current location of the device using location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param block The block to execute upon success, failure, or timeout. - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - block:(INTULocationRequestBlock)block; - -/** - Asynchronously requests the current location of the device using location services, optionally delaying the timeout countdown until the user has - responded to the dialog requesting permission for this app to access location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param delayUntilAuthorized A flag specifying whether the timeout should only take effect after the user responds to the system prompt requesting - permission for this app to access location services. If YES, the timeout countdown will not begin until after the - app receives location services permissions. If NO, the timeout countdown begins immediately when calling this method. - @param block The block to execute upon success, failure, or timeout. - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - delayUntilAuthorized:(BOOL)delayUntilAuthorized - block:(INTULocationRequestBlock)block; - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithBlock:(INTULocationRequestBlock)block; - -/** Immediately forces completion of the location request with the given requestID (if it exists), and executes the original request block with the results. - For one-time location requests, this is effectively a manual timeout, and will result in the request completing with status INTULocationStatusTimedOut. - If the requestID corresponds to a subscription, then the subscription will simply be canceled. */ -- (void)forceCompleteLocationRequest:(INTULocationRequestID)requestID; - -/** Immediately cancels the location request (or subscription) with the given requestID (if it exists), without executing the original request block. */ -- (void)cancelLocationRequest:(INTULocationRequestID)requestID; - -@end - - -/** - A category on INTULocationManager that exposes deprecated legacy APIs. These should no longer be used, and will be removed in a future release. - */ -@interface INTULocationManager (Deprecated) - -/** DEPRECATED, will be removed in a future release. Please use +[INTULocationManager locationServicesState] instead. - Returns YES if location services are enabled in the system settings, and the app has NOT been denied/restricted access. Returns NO otherwise. */ -@property (nonatomic, readonly) BOOL locationServicesAvailable __attribute__((deprecated)); - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.m" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.m" deleted file mode 100755 index fcbf6cf..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationManager.m" +++ /dev/null @@ -1,585 +0,0 @@ -// -// INTULocationManager.m -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationManager.h" -#import "INTULocationManager+Internal.h" -#import "INTULocationRequest.h" - - -#ifndef INTU_ENABLE_LOGGING -# ifdef DEBUG -# define INTU_ENABLE_LOGGING 1 -# else -# define INTU_ENABLE_LOGGING 0 -# endif /* DEBUG */ -#endif /* INTU_ENABLE_LOGGING */ - -#if INTU_ENABLE_LOGGING -# define INTULMLog(...) NSLog(@"INTULocationManager: %@", [NSString stringWithFormat:__VA_ARGS__]); -#else -# define INTULMLog(...) -#endif /* INTU_ENABLE_LOGGING */ - - -@interface INTULocationManager () - -/** The instance of CLLocationManager encapsulated by this class. */ -@property (nonatomic, strong) CLLocationManager *locationManager; -/** The most recent current location, or nil if the current location is unknown, invalid, or stale. */ -@property (nonatomic, strong) CLLocation *currentLocation; -/** Whether or not the CLLocationManager is currently sending location updates. */ -@property (nonatomic, assign) BOOL isUpdatingLocation; -/** Whether an error occurred during the last location update. */ -@property (nonatomic, assign) BOOL updateFailed; - -// An array of pending location requests in the form: -// @[ INTULocationRequest *locationRequest1, INTULocationRequest *locationRequest2, ... ] -@property (nonatomic, strong) NSMutableArray *locationRequests; - -@end - - -@implementation INTULocationManager - -static id _sharedInstance; - -/** - Returns the current state of location services for this app, based on the system settings and user authorization status. - */ -+ (INTULocationServicesState)locationServicesState -{ - if ([CLLocationManager locationServicesEnabled] == NO) { - return INTULocationServicesStateDisabled; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { - return INTULocationServicesStateNotDetermined; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { - return INTULocationServicesStateDenied; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted) { - return INTULocationServicesStateRestricted; - } - - return INTULocationServicesStateAvailable; -} - -/** - Returns the singleton instance of this class. - */ -+ (instancetype)sharedInstance -{ - static dispatch_once_t _onceToken; - dispatch_once(&_onceToken, ^{ - _sharedInstance = [[self alloc] init]; - }); - return _sharedInstance; -} - -- (instancetype)init -{ - NSAssert(_sharedInstance == nil, @"Only one instance of INTULocationManager should be created. Use +[INTULocationManager sharedInstance] instead."); - self = [super init]; - if (self) { - _locationManager = [[CLLocationManager alloc] init]; - _locationManager.delegate = self; - _locationRequests = [NSMutableArray array]; - } - return self; -} - -/** - Asynchronously requests the current location of the device using location services. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. - If this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param block The block to be executed when the request succeeds, fails, or times out. Three parameters are passed into the block: - - The current location (the most recent one acquired, regardless of accuracy level), or nil if no valid location was acquired - - The achieved accuracy for the current location (may be less than the desired accuracy if the request failed) - - The request status (if it succeeded, or if not, why it failed) - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - block:(INTULocationRequestBlock)block -{ - return [self requestLocationWithDesiredAccuracy:desiredAccuracy - timeout:timeout - delayUntilAuthorized:NO - block:block]; -} - -/** - Asynchronously requests the current location of the device using location services, optionally waiting until the user grants the app permission - to access location services before starting the timeout countdown. - - @param desiredAccuracy The accuracy level desired (refers to the accuracy and recency of the location). - @param timeout The maximum amount of time (in seconds) to wait for a location with the desired accuracy before completing. If - this value is 0.0, no timeout will be set (will wait indefinitely for success, unless request is force completed or canceled). - @param delayUntilAuthorized A flag specifying whether the timeout should only take effect after the user responds to the system prompt requesting - permission for this app to access location services. If YES, the timeout countdown will not begin until after the - app receives location services permissions. If NO, the timeout countdown begins immediately when calling this method. - @param block The block to be executed when the request succeeds, fails, or times out. Three parameters are passed into the block: - - The current location (the most recent one acquired, regardless of accuracy level), or nil if no valid location was acquired - - The achieved accuracy for the current location (may be less than the desired accuracy if the request failed) - - The request status (if it succeeded, or if not, why it failed) - - @return The location request ID, which can be used to force early completion or cancel the request while it is in progress. - */ -- (INTULocationRequestID)requestLocationWithDesiredAccuracy:(INTULocationAccuracy)desiredAccuracy - timeout:(NSTimeInterval)timeout - delayUntilAuthorized:(BOOL)delayUntilAuthorized - block:(INTULocationRequestBlock)block -{ - if (desiredAccuracy == INTULocationAccuracyNone) { - NSAssert(desiredAccuracy != INTULocationAccuracyNone, @"INTULocationAccuracyNone is not a valid desired accuracy."); - desiredAccuracy = INTULocationAccuracyCity; // default to the lowest valid desired accuracy - } - - INTULocationRequest *locationRequest = [[INTULocationRequest alloc] init]; - locationRequest.delegate = self; - locationRequest.desiredAccuracy = desiredAccuracy; - locationRequest.timeout = timeout; - locationRequest.block = block; - - BOOL deferTimeout = delayUntilAuthorized && ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined); - if (!deferTimeout) { - [locationRequest startTimeoutTimerIfNeeded]; - } - - [self addLocationRequest:locationRequest]; - - return locationRequest.requestID; -} - -/** - Creates a subscription for location updates that will execute the block once per update indefinitely (until canceled), regardless of the accuracy of each location. - If an error occurs, the block will execute with a status other than INTULocationStatusSuccess, and the subscription will be canceled automatically. - - @param block The block to execute every time an updated location is available. - The status will be INTULocationStatusSuccess unless an error occurred; it will never be INTULocationStatusTimedOut. - - @return The location request ID, which can be used to cancel the subscription of location updates to this block. - */ -- (INTULocationRequestID)subscribeToLocationUpdatesWithBlock:(INTULocationRequestBlock)block -{ - INTULocationRequest *locationRequest = [[INTULocationRequest alloc] init]; - locationRequest.desiredAccuracy = INTULocationAccuracyNone; // This makes the location request a subscription - locationRequest.block = block; - - [self addLocationRequest:locationRequest]; - - return locationRequest.requestID; -} - -/** - Immediately forces completion of the location request with the given requestID (if it exists), and executes the original request block with the results. - This is effectively a manual timeout, and will result in the request completing with status INTULocationStatusTimedOut. - */ -- (void)forceCompleteLocationRequest:(INTULocationRequestID)requestID -{ - INTULocationRequest *locationRequestToComplete = nil; - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.requestID == requestID) { - locationRequestToComplete = locationRequest; - break; - } - } - if (locationRequestToComplete) { - if (locationRequestToComplete.isSubscription) { - // Subscription requests can only be canceled - [self cancelLocationRequest:requestID]; - } else { - [locationRequestToComplete forceTimeout]; - [self completeLocationRequest:locationRequestToComplete]; - } - } -} - -/** - Immediately cancels the location request with the given requestID (if it exists), without executing the original request block. - */ -- (void)cancelLocationRequest:(INTULocationRequestID)requestID -{ - INTULocationRequest *locationRequestToCancel = nil; - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.requestID == requestID) { - locationRequestToCancel = locationRequest; - break; - } - } - if (locationRequestToCancel) { - [self.locationRequests removeObject:locationRequestToCancel]; - [locationRequestToCancel cancel]; - INTULMLog(@"Location Request canceled with ID: %ld", (long)locationRequestToCancel.requestID); - [self stopUpdatingLocationIfPossible]; - } -} - -#pragma mark Internal methods - -/** - Adds the given location request to the array of requests, and starts location updates if needed. - */ -- (void)addLocationRequest:(INTULocationRequest *)locationRequest -{ - INTULocationServicesState locationServicesState = [INTULocationManager locationServicesState]; - if (locationServicesState == INTULocationServicesStateDisabled || - locationServicesState == INTULocationServicesStateDenied || - locationServicesState == INTULocationServicesStateRestricted) { - // No need to add this location request, because location services are turned off device-wide, or the user has denied this app permissions to use them - [self completeLocationRequest:locationRequest]; - return; - } - - [self startUpdatingLocationIfNeeded]; - [self.locationRequests addObject:locationRequest]; - INTULMLog(@"Location Request added with ID: %ld", (long)locationRequest.requestID); -} - -/** - Returns the most recent current location, or nil if the current location is unknown, invalid, or stale. - */ -- (CLLocation *)currentLocation -{ - if (_currentLocation) { - // Location isn't nil, so test to see if it is valid - if (_currentLocation.coordinate.latitude == 0.0 && _currentLocation.coordinate.longitude == 0.0) { - // The current location is invalid; discard it and return nil - _currentLocation = nil; - } - } - - // Location is either nil or valid at this point, return it - return _currentLocation; -} - -/** - Inform CLLocationManager to start sending us updates to our location. - */ -- (void)startUpdatingLocationIfNeeded -{ -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 - // As of iOS 8, apps must explicitly request location services permissions. INTULocationManager supports both levels, "Always" and "When In Use". - // INTULocationManager determines which level of permissions to request based on which description key is present in your app's Info.plist - // If you provide values for both description keys, the more permissive "Always" level is requested. - if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_7_1 && [CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) { - BOOL hasAlwaysKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationAlwaysUsageDescription"] != nil; - BOOL hasWhenInUseKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"] != nil; - if (hasAlwaysKey) { - [self.locationManager requestAlwaysAuthorization]; - } else if (hasWhenInUseKey) { - [self.locationManager requestWhenInUseAuthorization]; - } else { - // At least one of the keys NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription MUST be present in the Info.plist file to use location services on iOS 8+. - NSAssert(hasAlwaysKey || hasWhenInUseKey, @"To use location services in iOS 8+, your Info.plist must provide a value for either NSLocationWhenInUseUsageDescription or NSLocationAlwaysUsageDescription."); - } - } -#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 */ - - // We only enable location updates while there are open location requests, so power usage isn't a concern. - // As a result, we use the Best accuracy on CLLocationManager so that we can quickly get a fix on the location, - // clear out the pending location requests, and then power down the location services. - if ([self.locationRequests count] == 0) { - self.locationManager.desiredAccuracy = kCLLocationAccuracyBest; - [self.locationManager startUpdatingLocation]; - if (self.isUpdatingLocation == NO) { - INTULMLog(@"Location services started."); - } - self.isUpdatingLocation = YES; - } -} - -/** - Checks to see if there are any outstanding locationRequests, and if there are none, informs CLLocationManager to stop sending - location updates. This is done as soon as location updates are no longer needed in order to conserve the device's battery. - */ -- (void)stopUpdatingLocationIfPossible -{ - if ([self.locationRequests count] == 0) { - [self.locationManager stopUpdatingLocation]; - if (self.isUpdatingLocation) { - INTULMLog(@"Location services stopped."); - } - self.isUpdatingLocation = NO; - } -} - -/** - Iterates over the array of pending location requests to check and see if the most recent current location - successfully satisfies any of their criteria. - */ -- (void)processLocationRequests -{ - CLLocation *mostRecentLocation = self.currentLocation; - - // Keep a separate array of location requests to complete to avoid modifying the locationRequests property while iterating over it - NSMutableArray *locationRequestsToComplete = [NSMutableArray array]; - - for (INTULocationRequest *locationRequest in self.locationRequests) { - if (locationRequest.hasTimedOut) { - // Request has timed out, complete it - [locationRequestsToComplete addObject:locationRequest]; - continue; - } - - if (mostRecentLocation != nil) { - if (locationRequest.isSubscription) { - // This is a subscription request, which lives indefinitely (unless manually canceled) and receives every location update we get - [self processSubscriptionRequest:locationRequest]; - continue; - } else { - // This is a regular one-time location request - NSTimeInterval currentLocationTimeSinceUpdate = fabs([mostRecentLocation.timestamp timeIntervalSinceNow]); - CLLocationAccuracy currentLocationHorizontalAccuracy = mostRecentLocation.horizontalAccuracy; - NSTimeInterval staleThreshold = [locationRequest updateTimeStaleThreshold]; - CLLocationAccuracy horizontalAccuracyThreshold = [locationRequest horizontalAccuracyThreshold]; - if (currentLocationTimeSinceUpdate <= staleThreshold && - currentLocationHorizontalAccuracy <= horizontalAccuracyThreshold) { - // The request's desired accuracy has been reached, complete it - [locationRequestsToComplete addObject:locationRequest]; - continue; - } - } - } - } - - for (INTULocationRequest *locationRequest in locationRequestsToComplete) { - [self completeLocationRequest:locationRequest]; - } -} - -/** - Immediately completes all pending location requests. - Used in cases such as when the location services authorization status changes to Denied or Restricted. - */ -- (void)completeAllLocationRequests -{ - // Iterate through a copy of the locationRequests array to avoid modifying the same array we are removing elements from - NSArray *locationRequests = [self.locationRequests copy]; - for (INTULocationRequest *locationRequest in locationRequests) { - [self completeLocationRequest:locationRequest]; - } - INTULMLog(@"Finished completing all location requests."); -} - -/** - Completes the given location request by removing it from the array of locationRequests and executing its completion block. - If this was the last pending location request, this method also turns off location updating. - */ -- (void)completeLocationRequest:(INTULocationRequest *)locationRequest -{ - if (locationRequest == nil) { - return; - } - - [locationRequest complete]; - [self.locationRequests removeObject:locationRequest]; - [self stopUpdatingLocationIfPossible]; - - INTULocationStatus status = [self statusForLocationRequest:locationRequest]; - CLLocation *currentLocation = self.currentLocation; - INTULocationAccuracy achievedAccuracy = [self achievedAccuracyForLocation:currentLocation]; - - // INTULocationManager is not thread safe and should only be called from the main thread, so we should already be executing on the main thread now. - // dispatch_async is used to ensure that the completion block for a request is not executed before the request ID is returned, for example in the - // case where the user has denied permission to access location services and the request is immediately completed with the appropriate error. - dispatch_async(dispatch_get_main_queue(), ^{ - if (locationRequest.block) { - locationRequest.block(currentLocation, achievedAccuracy, status); - } - }); - - INTULMLog(@"Location Request completed with ID: %ld, currentLocation: %@, achievedAccuracy: %lu, status: %lu", (long)locationRequest.requestID, currentLocation, (unsigned long) achievedAccuracy, (unsigned long)status); -} - -/** - Handles calling a subscription location request's block with the current location. - */ -- (void)processSubscriptionRequest:(INTULocationRequest *)locationRequest -{ - NSAssert(locationRequest.isSubscription, @"This method should only be called for subscription location requests."); - - INTULocationStatus status = [self statusForLocationRequest:locationRequest]; - CLLocation *currentLocation = self.currentLocation; - INTULocationAccuracy achievedAccuracy = [self achievedAccuracyForLocation:currentLocation]; - - // No need for dispatch_async when calling this block, since this method is only called from a CLLocationManager callback - if (locationRequest.block) { - locationRequest.block(currentLocation, achievedAccuracy, status); - } -} - -/** - Returns the location manager status for the given location request. - */ -- (INTULocationStatus)statusForLocationRequest:(INTULocationRequest *)locationRequest -{ - INTULocationServicesState locationServicesState = [INTULocationManager locationServicesState]; - - if (locationServicesState == INTULocationServicesStateDisabled) { - return INTULocationStatusServicesDisabled; - } - else if (locationServicesState == INTULocationServicesStateNotDetermined) { - return INTULocationStatusServicesNotDetermined; - } - else if (locationServicesState == INTULocationServicesStateDenied) { - return INTULocationStatusServicesDenied; - } - else if (locationServicesState == INTULocationServicesStateRestricted) { - return INTULocationStatusServicesRestricted; - } - else if (self.updateFailed) { - return INTULocationStatusError; - } - else if (locationRequest.hasTimedOut) { - return INTULocationStatusTimedOut; - } - - return INTULocationStatusSuccess; -} - -/** - Returns the associated INTULocationAccuracy level that has been achieved for a given location, - based on that location's horizontal accuracy and recency. - */ -- (INTULocationAccuracy)achievedAccuracyForLocation:(CLLocation *)location -{ - if (!location) { - return INTULocationAccuracyNone; - } - - NSTimeInterval timeSinceUpdate = fabs([location.timestamp timeIntervalSinceNow]); - CLLocationAccuracy horizontalAccuracy = location.horizontalAccuracy; - - if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdRoom && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdRoom) { - return INTULocationAccuracyRoom; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdHouse && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdHouse) { - return INTULocationAccuracyHouse; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdBlock && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdBlock) { - return INTULocationAccuracyBlock; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdNeighborhood && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdNeighborhood) { - return INTULocationAccuracyNeighborhood; - } - else if (horizontalAccuracy <= kINTUHorizontalAccuracyThresholdCity && - timeSinceUpdate <= kINTUUpdateTimeStaleThresholdCity) { - return INTULocationAccuracyCity; - } - else { - return INTULocationAccuracyNone; - } -} - -#pragma mark INTULocationRequestDelegate method - -- (void)locationRequestDidTimeout:(INTULocationRequest *)locationRequest -{ - // For robustness, only complete the location request if it is still pending (by checking to see that it hasn't been removed from the locationRequests array). - // Wait to complete it until after exiting the for loop, so we don't modify the array while iterating over it. - BOOL isRequestStillPending = NO; - for (INTULocationRequest *pendingLocationRequest in self.locationRequests) { - if (pendingLocationRequest.requestID == locationRequest.requestID) { - isRequestStillPending = YES; - break; - } - } - if (isRequestStillPending) { - [self completeLocationRequest:locationRequest]; - } -} - -#pragma mark CLLocationManagerDelegate methods - -- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations -{ - // Received update successfully, so clear any previous errors - self.updateFailed = NO; - - CLLocation *mostRecentLocation = [locations lastObject]; - self.currentLocation = mostRecentLocation; - - // The updated location may have just satisfied one of the pending location requests, so process them now to check - [self processLocationRequests]; -} - -- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error -{ - INTULMLog(@"Location update error: %@", [error localizedDescription]); - self.updateFailed = YES; - - [self completeAllLocationRequests]; -} - -- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status -{ - if (status == kCLAuthorizationStatusDenied || status == kCLAuthorizationStatusRestricted) { - // Clear out any pending location requests (which will execute the blocks with a status that reflects - // the unavailability of location services) since we now no longer have location services permissions - [self completeAllLocationRequests]; - } -#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 - else if (status == kCLAuthorizationStatusAuthorizedAlways || status == kCLAuthorizationStatusAuthorizedWhenInUse) { -#else - else if (status == kCLAuthorizationStatusAuthorized) { -#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_7_1 */ - // Start the timeout timer for location requests that were waiting for authorization - for (INTULocationRequest *locationRequest in self.locationRequests) { - [locationRequest startTimeoutTimerIfNeeded]; - } - } -} - -#pragma mark Deprecated methods - -/** - DEPRECATED, will be removed in a future release. Please use +[INTULocationManager locationServicesState] instead. - Returns YES if location services are enabled in the system settings, and the app has NOT been denied/restricted access. Returns NO otherwise. - Note that this method will return YES even if the authorization status has not yet been determined. - */ -- (BOOL)locationServicesAvailable -{ - if ([CLLocationManager locationServicesEnabled] == NO) { - return NO; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied) { - return NO; - } - else if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusRestricted) { - return NO; - } - - return YES; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.h" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.h" deleted file mode 100755 index a525ac7..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.h" +++ /dev/null @@ -1,85 +0,0 @@ -// -// INTULocationRequest.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequestDefines.h" - -@class INTULocationRequest; - -/** - Protocol for the INTULocationRequest to notify the its delegate that a request has timed out. - */ -@protocol INTULocationRequestDelegate - -/** - Notification that a location request has timed out. - - @param locationRequest The location request that timed out. - */ -- (void)locationRequestDidTimeout:(INTULocationRequest *)locationRequest; - -@end - - -/** - Represents a geolocation request that is created and managed by INTULocationManager. - */ -@interface INTULocationRequest : NSObject - -/** The delegate for this location request. */ -@property (nonatomic, weak) id delegate; -/** The request ID for this location request (set during initialization). */ -@property (nonatomic, readonly) INTULocationRequestID requestID; -/** Whether this is a subscription request (desired accuracy is INTULocationAccuracyNone). */ -@property (nonatomic, readonly) BOOL isSubscription; -/** The desired accuracy for this location request. - If set to INTULocationAccuracyNone, this will be a subscription request (executes block on each location update indefinitely until canceled). */ -@property (nonatomic, assign) INTULocationAccuracy desiredAccuracy; -/** The maximum amount of time the location request should be allowed to live before completing. - If this value is exactly 0.0, it will be ignored (the request will never timeout by itself). */ -@property (nonatomic, assign) NSTimeInterval timeout; -/** How long the location request has been alive since the timeout value was last set. */ -@property (nonatomic, readonly) NSTimeInterval timeAlive; -/** Whether this location request has timed out (will also be YES if it has been completed). */ -@property (nonatomic, readonly) BOOL hasTimedOut; -/** The block to execute when the location request completes. */ -@property (nonatomic, copy) INTULocationRequestBlock block; - -/** Completes the location request. */ -- (void)complete; -/** Forces the location request to consider itself timed out. */ -- (void)forceTimeout; -/** Cancels the location request. */ -- (void)cancel; - -/** Starts the location request's timeout timer if a nonzero timeout value is set, and the timer has not already been started. */ -- (void)startTimeoutTimerIfNeeded; - -/** Returns the associated recency threshold (in seconds) for the location request's desired accuracy level. */ -- (NSTimeInterval)updateTimeStaleThreshold; - -/** Returns the associated horizontal accuracy threshold (in meters) for the location request's desired accuracy level. */ -- (CLLocationAccuracy)horizontalAccuracyThreshold; - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.m" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.m" deleted file mode 100755 index d74fa06..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequest.m" +++ /dev/null @@ -1,245 +0,0 @@ -// -// INTULocationRequest.m -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#import "INTULocationRequest.h" - - -@interface INTULocationRequest () - -// Redeclare this property as readwrite for internal use. -@property (nonatomic, assign, readwrite) BOOL hasTimedOut; - -/** The NSDate representing the time when the request started. Set when the |timeout| property is set. */ -@property (nonatomic, strong) NSDate *requestStartTime; -/** The timer that will fire to notify this request that it has timed out. Started when the |timeout| property is set. */ -@property (nonatomic, strong) NSTimer *timeoutTimer; - -@end - - -@implementation INTULocationRequest - -static INTULocationRequestID _nextRequestID = 0; - -/** - Returns a unique request ID (within the lifetime of the application). - */ -+ (INTULocationRequestID)getUniqueRequestID -{ - _nextRequestID++; - return _nextRequestID; -} - -/** - Calls the designated initializer with an autogenerated unique requestID. - */ -- (id)init -{ - return [self initWithRequestID:[INTULocationRequest getUniqueRequestID]]; -} - -/** - Designated initializer. - Use regular init method to autogenerate a unique requestID. - */ -- (id)initWithRequestID:(INTULocationRequestID)requestID -{ - self = [super init]; - if (self) { - _requestID = requestID; - _hasTimedOut = NO; - } - return self; -} - -/** - Returns the associated recency threshold (in seconds) for the location request's desired accuracy level. - */ -- (NSTimeInterval)updateTimeStaleThreshold -{ - switch (self.desiredAccuracy) { - case INTULocationAccuracyRoom: - return kINTUUpdateTimeStaleThresholdRoom; - break; - case INTULocationAccuracyHouse: - return kINTUUpdateTimeStaleThresholdHouse; - break; - case INTULocationAccuracyBlock: - return kINTUUpdateTimeStaleThresholdBlock; - break; - case INTULocationAccuracyNeighborhood: - return kINTUUpdateTimeStaleThresholdNeighborhood; - break; - case INTULocationAccuracyCity: - return kINTUUpdateTimeStaleThresholdCity; - break; - default: - NSAssert(NO, @"Unknown desired accuracy."); - return 0.0; - break; - } -} - -/** - Returns the associated horizontal accuracy threshold (in meters) for the location request's desired accuracy level. - */ -- (CLLocationAccuracy)horizontalAccuracyThreshold -{ - switch (self.desiredAccuracy) { - case INTULocationAccuracyRoom: - return kINTUHorizontalAccuracyThresholdRoom; - break; - case INTULocationAccuracyHouse: - return kINTUHorizontalAccuracyThresholdHouse; - break; - case INTULocationAccuracyBlock: - return kINTUHorizontalAccuracyThresholdBlock; - break; - case INTULocationAccuracyNeighborhood: - return kINTUHorizontalAccuracyThresholdNeighborhood; - break; - case INTULocationAccuracyCity: - return kINTUHorizontalAccuracyThresholdCity; - break; - default: - NSAssert(NO, @"Unknown desired accuracy."); - return 0.0; - break; - } -} - -/** - Completes the location request. - */ -- (void)complete -{ - [self.timeoutTimer invalidate]; - self.timeoutTimer = nil; - self.requestStartTime = nil; -} - -/** - Forces the location request to consider itself timed out. - */ -- (void)forceTimeout -{ - if (self.desiredAccuracy > INTULocationAccuracyNone) { - // Only one-off location requests (not subscription requests) should ever be considered timed out - self.hasTimedOut = YES; - } -} - -/** - Cancels the location request. - */ -- (void)cancel -{ - [self.timeoutTimer invalidate]; - self.timeoutTimer = nil; - self.requestStartTime = nil; -} - -/** - Starts the location request's timeout timer if a nonzero timeout value is set, and the timer has not already been started. - */ -- (void)startTimeoutTimerIfNeeded -{ - if (self.timeout > 0 && !self.timeoutTimer) { - self.requestStartTime = [NSDate date]; - self.timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:self.timeout target:self selector:@selector(timeoutTimerFired:) userInfo:nil repeats:NO]; - } -} - -/** - Dynamic property that returns whether this is a subscription request (desired accuracy is INTULocationAccuracyNone). - */ -- (BOOL)isSubscription -{ - return self.desiredAccuracy == INTULocationAccuracyNone; -} - -/** - Dynamic property that returns how long the request has been alive (since the timeout value was set). - */ -- (NSTimeInterval)timeAlive -{ - if (self.requestStartTime == nil) { - return 0.0; - } - return fabs([self.requestStartTime timeIntervalSinceNow]); -} - -/** - Returns whether the location request has timed out or not. - Once this becomes YES, it will not automatically reset to NO even if a new timeout value is set. - */ -- (BOOL)hasTimedOut -{ - if (self.timeout > 0.0 && self.timeAlive > self.timeout) { - _hasTimedOut = YES; - } - return _hasTimedOut; -} - -/** - Callback when the timeout timer fires. Notifies the delegate that this event has occurred. - */ -- (void)timeoutTimerFired:(NSTimer *)timer -{ - self.hasTimedOut = YES; - [self.delegate locationRequestDidTimeout:self]; -} - -/** - Two location requests are considered equal if their request IDs match. - */ -- (BOOL)isEqual:(id)object -{ - if (object == self) { - return YES; - } - if (!object || ![object isKindOfClass:[self class]]) { - return NO; - } - if (((INTULocationRequest *)object).requestID == self.requestID) { - return YES; - } - return NO; -} - -/** - Return a hash based on the string representation of the request ID. - */ -- (NSUInteger)hash -{ - return [[NSString stringWithFormat:@"%ld", (long) self.requestID] hash]; -} - -- (void)dealloc -{ - [_timeoutTimer invalidate]; -} - -@end diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequestDefines.h" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequestDefines.h" deleted file mode 100755 index 60672d5..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/Lib/INTULocationManager/INTULocationRequestDefines.h" +++ /dev/null @@ -1,114 +0,0 @@ -// -// INTULocationRequestDefines.h -// -// Copyright (c) 2014-2015 Intuit Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -#ifndef INTU_LOCATION_REQUEST_DEFINES_H -#define INTU_LOCATION_REQUEST_DEFINES_H - -#import -#import - -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdCity = 5000.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdNeighborhood = 1000.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdBlock = 100.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdHouse = 15.0; // in meters -static const CLLocationAccuracy kINTUHorizontalAccuracyThresholdRoom = 5.0; // in meters - -static const NSTimeInterval kINTUUpdateTimeStaleThresholdCity = 600.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdNeighborhood = 300.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdBlock = 60.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdHouse = 15.0; // in seconds -static const NSTimeInterval kINTUUpdateTimeStaleThresholdRoom = 5.0; // in seconds - -/** The possible states that location services can be in. */ -typedef NS_ENUM(NSInteger, INTULocationServicesState) { - /** User has already granted this app permissions to access location services, and they are enabled and ready for use by this app. - Note: this state will be returned for both the "When In Use" and "Always" permission levels. */ - INTULocationServicesStateAvailable, - /** User has not yet responded to the dialog that grants this app permission to access location services. */ - INTULocationServicesStateNotDetermined, - /** User has explicitly denied this app permission to access location services. (The user can enable permissions again for this app from the system Settings app.) */ - INTULocationServicesStateDenied, - /** User does not have ability to enable location services (e.g. parental controls, corporate policy, etc). */ - INTULocationServicesStateRestricted, - /** User has turned off location services device-wide (for all apps) from the system Settings app. */ - INTULocationServicesStateDisabled -}; - -/** A unique ID that corresponds to one location request. */ -typedef NSInteger INTULocationRequestID; - -/** An abstraction of both the horizontal accuracy and recency of location data. - Room is the highest level of accuracy/recency; City is the lowest level. */ -typedef NS_ENUM(NSInteger, INTULocationAccuracy) { - // 'None' is not valid as a desired accuracy. - /** Inaccurate (>5000 meters, and/or received >10 minutes ago). */ - INTULocationAccuracyNone = 0, - - // The below options are valid desired accuracies. - /** 5000 meters or better, and received within the last 10 minutes. Lowest accuracy. */ - INTULocationAccuracyCity, - /** 1000 meters or better, and received within the last 5 minutes. */ - INTULocationAccuracyNeighborhood, - /** 100 meters or better, and received within the last 1 minute. */ - INTULocationAccuracyBlock, - /** 15 meters or better, and received within the last 15 seconds. */ - INTULocationAccuracyHouse, - /** 5 meters or better, and received within the last 5 seconds. Highest accuracy. */ - INTULocationAccuracyRoom, -}; - -/** A status that will be passed in to the completion block of a location request. */ -typedef NS_ENUM(NSInteger, INTULocationStatus) { - // These statuses will accompany a valid location. - /** Got a location and desired accuracy level was achieved successfully. */ - INTULocationStatusSuccess = 0, - /** Got a location, but the desired accuracy level was not reached before timeout. (Not applicable to subscriptions.) */ - INTULocationStatusTimedOut, - - // These statuses indicate some sort of error, and will accompany a nil location. - /** User has not yet responded to the dialog that grants this app permission to access location services. */ - INTULocationStatusServicesNotDetermined, - /** User has explicitly denied this app permission to access location services. */ - INTULocationStatusServicesDenied, - /** User does not have ability to enable location services (e.g. parental controls, corporate policy, etc). */ - INTULocationStatusServicesRestricted, - /** User has turned off location services device-wide (for all apps) from the system Settings app. */ - INTULocationStatusServicesDisabled, - /** An error occurred while using the system location services. */ - INTULocationStatusError -}; - -/** - A block type for a location request, which is executed when the request succeeds, fails, or times out. - - @param currentLocation The most recent & accurate current location available when the block executes, or nil if no valid location is available. - @param achievedAccuracy The accuracy level that was actually achieved (may be better than, equal to, or worse than the desired accuracy). - @param status The status of the location request - whether it succeeded, timed out, or failed due to some sort of error. This can be used to - understand what the outcome of the request was, decide if/how to use the associated currentLocation, and determine whether other - actions are required (such as displaying an error message to the user, retrying with another request, quietly proceeding, etc). - */ -typedef void(^INTULocationRequestBlock)(CLLocation *currentLocation, INTULocationAccuracy achievedAccuracy, INTULocationStatus status); - -#endif /* INTU_LOCATION_REQUEST_DEFINES_H */ diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/OCSWBridge.h" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/OCSWBridge.h" deleted file mode 100755 index c23a96c..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/OCSWBridge.h" +++ /dev/null @@ -1,15 +0,0 @@ -// -// OCSWBridge.h -// 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -#ifndef OCSWBridge_h -#define OCSWBridge_h - -#import "INTULocationManager.h" - - -#endif /* OCSWBridge_h */ diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/ViewController.swift" deleted file mode 100755 index c8b8248..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/08-\346\216\214\346\217\241 - \344\275\277\347\224\250\347\254\254\344\270\211\346\226\271\346\241\206\346\236\266\350\277\233\350\241\214\345\256\232\344\275\215/ViewController.swift" +++ /dev/null @@ -1,36 +0,0 @@ -// -// ViewController.swift -// 08-鎺屾彙 - 浣跨敤绗笁鏂规鏋惰繘琛屽畾浣 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - - -class ViewController: UIViewController { - - - - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - - let requestID:INTULocationRequestID = INTULocationManager.sharedInstance().requestLocationWithDesiredAccuracy(INTULocationAccuracy.Room, timeout: 3) { (location:CLLocation!, locationAccuracy:INTULocationAccuracy, status:INTULocationStatus) -> Void in - if status == INTULocationStatus.Success - { - print("---\(location)") - } - } - - - // 鍙栨秷浣嶇疆璇锋眰 (涓嶄細璋冪敤block) -// INTULocationManager.sharedInstance().cancelLocationRequest(requestID) - - // 寮哄埗瀹屾垚浣嶇疆璇锋眰(浼氳皟鐢╞lock) - INTULocationManager.sharedInstance().forceCompleteLocationRequest(requestID) - } - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" deleted file mode 100755 index 9773b98..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.pbxproj" +++ /dev/null @@ -1,301 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 7BA2B16A1C13302600E7C4BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B1691C13302600E7C4BC /* AppDelegate.swift */; }; - 7BA2B16C1C13302600E7C4BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B16B1C13302600E7C4BC /* ViewController.swift */; }; - 7BA2B16F1C13302600E7C4BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B16D1C13302600E7C4BC /* Main.storyboard */; }; - 7BA2B1711C13302600E7C4BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1701C13302600E7C4BC /* Assets.xcassets */; }; - 7BA2B1741C13302600E7C4BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7BA2B1721C13302600E7C4BC /* LaunchScreen.storyboard */; }; - 7BA2B17C1C13341000E7C4BC /* XMGLocationTool.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA2B17B1C13341000E7C4BC /* XMGLocationTool.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 7BA2B1661C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 7BA2B1691C13302600E7C4BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 7BA2B16B1C13302600E7C4BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 7BA2B16E1C13302600E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 7BA2B1701C13302600E7C4BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 7BA2B1731C13302600E7C4BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 7BA2B1751C13302600E7C4BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 7BA2B17B1C13341000E7C4BC /* XMGLocationTool.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = XMGLocationTool.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 7BA2B1631C13302600E7C4BC /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 7BA2B15D1C13302600E7C4BC = { - isa = PBXGroup; - children = ( - 7BA2B1681C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */, - 7BA2B1671C13302600E7C4BC /* Products */, - ); - sourceTree = ""; - }; - 7BA2B1671C13302600E7C4BC /* Products */ = { - isa = PBXGroup; - children = ( - 7BA2B1661C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */, - ); - name = Products; - sourceTree = ""; - }; - 7BA2B1681C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */ = { - isa = PBXGroup; - children = ( - 7BA2B1691C13302600E7C4BC /* AppDelegate.swift */, - 7BA2B16B1C13302600E7C4BC /* ViewController.swift */, - 7BA2B16D1C13302600E7C4BC /* Main.storyboard */, - 7BA2B1701C13302600E7C4BC /* Assets.xcassets */, - 7BA2B1721C13302600E7C4BC /* LaunchScreen.storyboard */, - 7BA2B1751C13302600E7C4BC /* Info.plist */, - 7BA2B17B1C13341000E7C4BC /* XMGLocationTool.swift */, - ); - path = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 7BA2B1651C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */ = { - isa = PBXNativeTarget; - buildConfigurationList = 7BA2B1781C13302600E7C4BC /* Build configuration list for PBXNativeTarget "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */; - buildPhases = ( - 7BA2B1621C13302600E7C4BC /* Sources */, - 7BA2B1631C13302600E7C4BC /* Frameworks */, - 7BA2B1641C13302600E7C4BC /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - productName = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹"; - productReference = 7BA2B1661C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 7BA2B15E1C13302600E7C4BC /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "灏忕爜鍝"; - TargetAttributes = { - 7BA2B1651C13302600E7C4BC = { - CreatedOnToolsVersion = 7.1; - DevelopmentTeam = Q48DWHSPHZ; - SystemCapabilities = { - com.apple.BackgroundModes = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 7BA2B1611C13302600E7C4BC /* Build configuration list for PBXProject "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 7BA2B15D1C13302600E7C4BC; - productRefGroup = 7BA2B1671C13302600E7C4BC /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 7BA2B1651C13302600E7C4BC /* 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 7BA2B1641C13302600E7C4BC /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B1741C13302600E7C4BC /* LaunchScreen.storyboard in Resources */, - 7BA2B1711C13302600E7C4BC /* Assets.xcassets in Resources */, - 7BA2B16F1C13302600E7C4BC /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 7BA2B1621C13302600E7C4BC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 7BA2B17C1C13341000E7C4BC /* XMGLocationTool.swift in Sources */, - 7BA2B16C1C13302600E7C4BC /* ViewController.swift in Sources */, - 7BA2B16A1C13302600E7C4BC /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 7BA2B16D1C13302600E7C4BC /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B16E1C13302600E7C4BC /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 7BA2B1721C13302600E7C4BC /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 7BA2B1731C13302600E7C4BC /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 7BA2B1761C13302600E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 7BA2B1771C13302600E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "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 = gnu99; - 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 = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 7BA2B1791C13302600E7C4BC /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-9-----------block-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7BA2B17A1C13302600E7C4BC /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "com.520it.-9-----------block-----"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 7BA2B1611C13302600E7C4BC /* Build configuration list for PBXProject "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1761C13302600E7C4BC /* Debug */, - 7BA2B1771C13302600E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 7BA2B1781C13302600E7C4BC /* Build configuration list for PBXNativeTarget "09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7BA2B1791C13302600E7C4BC /* Debug */, - 7BA2B17A1C13302600E7C4BC /* Release */, - ); - defaultConfigurationIsVisible = 0; - }; -/* End XCConfigurationList section */ - }; - rootObject = 7BA2B15E1C13302600E7C4BC /* Project object */; -} diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" deleted file mode 100755 index 5f9ceab..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242.xcodeproj/project.xcworkspace/contents.xcworkspacedata" +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.swift" deleted file mode 100755 index e397cd4..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/AppDelegate.swift" +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> 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 throttle down OpenGL ES frame rates. 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 inactive 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/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" deleted file mode 100755 index 118c98f..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Assets.xcassets/AppIcon.appiconset/Contents.json" +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "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" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" deleted file mode 100755 index 1447b3c..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/LaunchScreen.storyboard" +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" deleted file mode 100755 index 033f4d7..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Base.lproj/Main.storyboard" +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" deleted file mode 100755 index ec54c82..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/Info.plist" +++ /dev/null @@ -1,42 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - NSLocationAlwaysUsageDescription - 瀹氫綅鎻忚堪 - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.swift" deleted file mode 100755 index 4b7348e..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/ViewController.swift" +++ /dev/null @@ -1,33 +0,0 @@ -// -// ViewController.swift -// 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - // Do any additional setup after loading the view, typically from a nib. - } - - override func touchesBegan(touches: Set, withEvent event: UIEvent?) { - - XMGLocationTool.shareInstance().getCurrentLocation { - (location, placemark, error) -> Void in - - print(location) - - } - - } - - - -} - diff --git "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.swift" "b/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.swift" deleted file mode 100755 index bc6b14a..0000000 --- "a/CoreLocation\346\241\206\346\236\266/Swift_Code/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/09-\344\272\206\350\247\243 - \344\273\243\347\220\206\346\250\241\345\274\217\345\210\260block\346\250\241\345\274\217\347\232\204\350\275\254\346\215\242/XMGLocationTool.swift" +++ /dev/null @@ -1,140 +0,0 @@ -// -// XMGLocationTool.swift -// 09-浜嗚В - 浠g悊妯″紡鍒癰lock妯″紡鐨勮浆鎹 -// -// Created by 鐜嬮『瀛 on 15/12/5. -// Copyright 漏 2015骞 灏忕爜鍝. All rights reserved. -// - -import UIKit -import CoreLocation - -class XMGLocationTool: NSObject, CLLocationManagerDelegate -{ - - // 鍗曚緥妯″紡 - private static let shareObj:XMGLocationTool = XMGLocationTool() - class func shareInstance() -> XMGLocationTool - { - return shareObj - } - - // 璁板綍浠g爜鍧 - var resultBlock : ((location : CLLocation?, placemark : CLPlacemark?, error : String?) -> Void)? - - // 鎳掑姞杞戒綅缃鐞嗚 - lazy var locationManager : CLLocationManager = - { - - let tempLocationManage : CLLocationManager = CLLocationManager() - tempLocationManage.delegate = self - - // 璇锋眰鎺堟潈 - if Float(UIDevice.currentDevice().systemVersion) >= 8.0 - { - - - /// 鍒ゆ柇璇锋眰浠涔堟牱鐨勬巿鏉 - - // 1. 鑾峰彇info鏂囦欢鐨勫唴瀹 - let infoDic = NSBundle.mainBundle().infoDictionary - - // 2. 鑾峰彇瀹氫綅鐨勫墠鍙版弿杩板拰鍓嶅悗鍙板畾浣嶆弿杩, 鐒跺悗鏍规嵁鏄惁涓虹┖, 鍒ゆ柇搴旇浣跨敤鍝鎺堟潈鏂规 - let whenInUseDesc = infoDic!["NSLocationWhenInUseUsageDescription"] - let alwaysDesc = infoDic!["NSLocationAlwaysUsageDescription"] - - // 鍓嶅悗鍙板畾浣嶆巿鏉冩儏鍐 - if alwaysDesc?.length > 0 - { - tempLocationManage.requestAlwaysAuthorization() - } - // 鍓嶅彴瀹氫綅鎺堟潈鎯呭喌 - else if whenInUseDesc?.length > 0 - { - tempLocationManage.requestWhenInUseAuthorization() - // 鍒ゆ柇鏄惁鍕鹃変簡鍚庡彴妯″紡, 閫傞厤iOS9.0鐨勫墠鍙板畾浣嶆巿鏉冪姸鎬佷笅鐨, 鍚庡彴瀹氫綅 - let backModels = infoDic!["UIBackgroundModes"] as! NSArray - if backModels.containsObject("location") - { - if Float(UIDevice.currentDevice().systemVersion) >= 9.0 - { - tempLocationManage.allowsBackgroundLocationUpdates = true - } - } - } - else - { - print("鍦╥OS8.0涔嬪悗, 鑾峰彇鐢ㄦ埛浣嶇疆, 蹇呴』鍦╥nfo.plist鏂囦欢涓厤缃甆SLocationWhenInUseUsageDescription 鎴栬 NSLocationAlwaysUsageDescription") - } - - } - - return tempLocationManage - }() - - - lazy var geoCoder : CLGeocoder = - { - - let tempGeoCoder : CLGeocoder = CLGeocoder() - - return tempGeoCoder - }() - - - /// 鑾峰彇褰撳墠鐨勪綅缃俊鎭, 骞堕氳繃闂寘浼犻掔粰澶栫晫 - func getCurrentLocation(result : (location : CLLocation?, placemark : CLPlacemark?, error : String?) -> Void) - { - - - // 璁板綍闂寘 - resultBlock = result - - // 寮濮嬭幏鍙栫敤鎴蜂綅缃 - if CLLocationManager.locationServicesEnabled() - { - locationManager.startUpdatingLocation() - } - else - { - resultBlock!(location: nil, placemark: nil, error: "涓嶈兘瀹氫綅!") - } - - - } - - - - - /// MARK: CLLocationManagerDelegate - - func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - - // 鑾峰彇鍒颁綅缃璞′箣鍚, 杩涜鍙嶅湴鐞嗙紪鐮 - geoCoder.reverseGeocodeLocation(locations.last!) { - (placemarks:[CLPlacemark]?, error:NSError?) -> Void in - - if error == nil - { - self.resultBlock!(location: locations.last, placemark: placemarks?.first, error: nil) - } - else - { - self.resultBlock!(location: locations.last, placemark: nil, error: nil) - } - } - - // 鍋滄鏇存柊鐢ㄦ埛浣嶇疆 - manager.stopUpdatingLocation() - - - } - - - - - - - - -} diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 8dada3e..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md deleted file mode 100644 index 313db04..0000000 --- a/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# 绠涔︾瑪璁板搴旀簮鐮 -娆㈣繋鍏虫敞寰俊鍏紬鍙: wszcoder (鎴栨悳绱"鐜嬮『瀛") 鎴栦笅鏂规壂鎻忎簩缁寸爜 , 涓璧蜂氦娴佸涔! - -![image](https://github.com/wangshunzi/DayDayStudy/blob/master/寰俊鍏紬鍙蜂簩缁寸爜.jpg) - -### 婧愮爜涓: CoreLocation妗嗘灦鐨勪娇鐢: http://www.jianshu.com/p/dd96f9c03f48 \ No newline at end of file diff --git "a/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\344\272\214\347\273\264\347\240\201.jpg" "b/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\344\272\214\347\273\264\347\240\201.jpg" deleted file mode 100644 index 9ea453c..0000000 Binary files "a/\345\276\256\344\277\241\345\205\254\344\274\227\345\217\267\344\272\214\347\273\264\347\240\201.jpg" and /dev/null differ