diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.pbxproj" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.pbxproj" new file mode 100644 index 00000000..caf10180 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.pbxproj" @@ -0,0 +1,438 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 8B2186181A1CAC63007A01E7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B2186171A1CAC63007A01E7 /* main.m */; }; + 8B21861B1A1CAC63007A01E7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B21861A1A1CAC63007A01E7 /* AppDelegate.m */; }; + 8B21861E1A1CAC63007A01E7 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B21861D1A1CAC63007A01E7 /* ViewController.m */; }; + 8B2186211A1CAC63007A01E7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8B21861F1A1CAC63007A01E7 /* Main.storyboard */; }; + 8B2186231A1CAC63007A01E7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8B2186221A1CAC63007A01E7 /* Images.xcassets */; }; + 8B2186261A1CAC63007A01E7 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8B2186241A1CAC63007A01E7 /* LaunchScreen.xib */; }; + 8B2186321A1CAC64007A01E7 /* MyAPNSProjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B2186311A1CAC64007A01E7 /* MyAPNSProjectTests.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 8B21862C1A1CAC64007A01E7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8B21860A1A1CAC63007A01E7 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8B2186111A1CAC63007A01E7; + remoteInfo = MyAPNSProject; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 8B2186121A1CAC63007A01E7 /* MyAPNSProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MyAPNSProject.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8B2186161A1CAC63007A01E7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8B2186171A1CAC63007A01E7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 8B2186191A1CAC63007A01E7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 8B21861A1A1CAC63007A01E7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 8B21861C1A1CAC63007A01E7 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 8B21861D1A1CAC63007A01E7 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 8B2186201A1CAC63007A01E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 8B2186221A1CAC63007A01E7 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 8B2186251A1CAC63007A01E7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 8B21862B1A1CAC64007A01E7 /* MyAPNSProjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MyAPNSProjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 8B2186301A1CAC64007A01E7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8B2186311A1CAC64007A01E7 /* MyAPNSProjectTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MyAPNSProjectTests.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8B21860F1A1CAC63007A01E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8B2186281A1CAC64007A01E7 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 8B2186091A1CAC63007A01E7 = { + isa = PBXGroup; + children = ( + 8B2186141A1CAC63007A01E7 /* MyAPNSProject */, + 8B21862E1A1CAC64007A01E7 /* MyAPNSProjectTests */, + 8B2186131A1CAC63007A01E7 /* Products */, + ); + sourceTree = ""; + }; + 8B2186131A1CAC63007A01E7 /* Products */ = { + isa = PBXGroup; + children = ( + 8B2186121A1CAC63007A01E7 /* MyAPNSProject.app */, + 8B21862B1A1CAC64007A01E7 /* MyAPNSProjectTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 8B2186141A1CAC63007A01E7 /* MyAPNSProject */ = { + isa = PBXGroup; + children = ( + 8B2186191A1CAC63007A01E7 /* AppDelegate.h */, + 8B21861A1A1CAC63007A01E7 /* AppDelegate.m */, + 8B21861C1A1CAC63007A01E7 /* ViewController.h */, + 8B21861D1A1CAC63007A01E7 /* ViewController.m */, + 8B21861F1A1CAC63007A01E7 /* Main.storyboard */, + 8B2186221A1CAC63007A01E7 /* Images.xcassets */, + 8B2186241A1CAC63007A01E7 /* LaunchScreen.xib */, + 8B2186151A1CAC63007A01E7 /* Supporting Files */, + ); + path = MyAPNSProject; + sourceTree = ""; + }; + 8B2186151A1CAC63007A01E7 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 8B2186161A1CAC63007A01E7 /* Info.plist */, + 8B2186171A1CAC63007A01E7 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 8B21862E1A1CAC64007A01E7 /* MyAPNSProjectTests */ = { + isa = PBXGroup; + children = ( + 8B2186311A1CAC64007A01E7 /* MyAPNSProjectTests.m */, + 8B21862F1A1CAC64007A01E7 /* Supporting Files */, + ); + path = MyAPNSProjectTests; + sourceTree = ""; + }; + 8B21862F1A1CAC64007A01E7 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 8B2186301A1CAC64007A01E7 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8B2186111A1CAC63007A01E7 /* MyAPNSProject */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8B2186351A1CAC64007A01E7 /* Build configuration list for PBXNativeTarget "MyAPNSProject" */; + buildPhases = ( + 8B21860E1A1CAC63007A01E7 /* Sources */, + 8B21860F1A1CAC63007A01E7 /* Frameworks */, + 8B2186101A1CAC63007A01E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MyAPNSProject; + productName = MyAPNSProject; + productReference = 8B2186121A1CAC63007A01E7 /* MyAPNSProject.app */; + productType = "com.apple.product-type.application"; + }; + 8B21862A1A1CAC64007A01E7 /* MyAPNSProjectTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8B2186381A1CAC64007A01E7 /* Build configuration list for PBXNativeTarget "MyAPNSProjectTests" */; + buildPhases = ( + 8B2186271A1CAC64007A01E7 /* Sources */, + 8B2186281A1CAC64007A01E7 /* Frameworks */, + 8B2186291A1CAC64007A01E7 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 8B21862D1A1CAC64007A01E7 /* PBXTargetDependency */, + ); + name = MyAPNSProjectTests; + productName = MyAPNSProjectTests; + productReference = 8B21862B1A1CAC64007A01E7 /* MyAPNSProjectTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8B21860A1A1CAC63007A01E7 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0600; + ORGANIZATIONNAME = Tan; + TargetAttributes = { + 8B2186111A1CAC63007A01E7 = { + CreatedOnToolsVersion = 6.0.1; + DevelopmentTeam = MLD828QZD4; + }; + 8B21862A1A1CAC64007A01E7 = { + CreatedOnToolsVersion = 6.0.1; + TestTargetID = 8B2186111A1CAC63007A01E7; + }; + }; + }; + buildConfigurationList = 8B21860D1A1CAC63007A01E7 /* Build configuration list for PBXProject "MyAPNSProject" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8B2186091A1CAC63007A01E7; + productRefGroup = 8B2186131A1CAC63007A01E7 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8B2186111A1CAC63007A01E7 /* MyAPNSProject */, + 8B21862A1A1CAC64007A01E7 /* MyAPNSProjectTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8B2186101A1CAC63007A01E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8B2186211A1CAC63007A01E7 /* Main.storyboard in Resources */, + 8B2186261A1CAC63007A01E7 /* LaunchScreen.xib in Resources */, + 8B2186231A1CAC63007A01E7 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8B2186291A1CAC64007A01E7 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8B21860E1A1CAC63007A01E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8B21861E1A1CAC63007A01E7 /* ViewController.m in Sources */, + 8B21861B1A1CAC63007A01E7 /* AppDelegate.m in Sources */, + 8B2186181A1CAC63007A01E7 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8B2186271A1CAC64007A01E7 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8B2186321A1CAC64007A01E7 /* MyAPNSProjectTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 8B21862D1A1CAC64007A01E7 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8B2186111A1CAC63007A01E7 /* MyAPNSProject */; + targetProxy = 8B21862C1A1CAC64007A01E7 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 8B21861F1A1CAC63007A01E7 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8B2186201A1CAC63007A01E7 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 8B2186241A1CAC63007A01E7 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 8B2186251A1CAC63007A01E7 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8B2186331A1CAC64007A01E7 /* 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; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 8B2186341A1CAC64007A01E7 /* 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 = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8B2186361A1CAC64007A01E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = MyAPNSProject/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = "e7f49ab0-c4f7-4cca-8c59-5b76440f345f"; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Debug; + }; + 8B2186371A1CAC64007A01E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = MyAPNSProject/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = "e7f49ab0-c4f7-4cca-8c59-5b76440f345f"; + TARGETED_DEVICE_FAMILY = 1; + }; + name = Release; + }; + 8B2186391A1CAC64007A01E7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = MyAPNSProjectTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MyAPNSProject.app/MyAPNSProject"; + }; + name = Debug; + }; + 8B21863A1A1CAC64007A01E7 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + ); + INFOPLIST_FILE = MyAPNSProjectTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MyAPNSProject.app/MyAPNSProject"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8B21860D1A1CAC63007A01E7 /* Build configuration list for PBXProject "MyAPNSProject" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8B2186331A1CAC64007A01E7 /* Debug */, + 8B2186341A1CAC64007A01E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8B2186351A1CAC64007A01E7 /* Build configuration list for PBXNativeTarget "MyAPNSProject" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8B2186361A1CAC64007A01E7 /* Debug */, + 8B2186371A1CAC64007A01E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8B2186381A1CAC64007A01E7 /* Build configuration list for PBXNativeTarget "MyAPNSProjectTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8B2186391A1CAC64007A01E7 /* Debug */, + 8B21863A1A1CAC64007A01E7 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8B21860A1A1CAC63007A01E7 /* Project object */; +} diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata" new file mode 100644 index 00000000..41dc325e --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject.xcodeproj/project.xcworkspace/contents.xcworkspacedata" @@ -0,0 +1,7 @@ + + + + + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.h" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.h" new file mode 100644 index 00000000..1c5e6123 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.h" @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// MyAPNSProject +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.m" new file mode 100644 index 00000000..3bb329d2 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/AppDelegate.m" @@ -0,0 +1,93 @@ +// +// AppDelegate.m +// MyAPNSProject +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. 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. + /*UIMutableUserNotificationAction* action = [[UIMutableUserNotificationAction alloc] init]; + action.identifier = @"action"; + action.title = @"Accept"; + action.activationMode = UIUserNotificationActivationModeForeground; + + UIMutableUserNotificationAction* action2 = [[UIMutableUserNotificationAction alloc] init]; + action2.identifier = @"action2"; + action2.title = @"Reject"; + action2.activationMode = UIUserNotificationActivationModeBackground; + action2.authenticationRequired = YES; + action2.destructive = YES; + + UIMutableUserNotificationCategory* categorys = [[UIMutableUserNotificationCategory alloc]init]; + categorys.identifier = @"alert"; + [categorys setActions:@[action, action2] forContext:UIUserNotificationActionContextMinimal]; + + UIUserNotificationSettings* setting = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge|UIUserNotificationTypeSound|UIUserNotificationTypeAlert categories:[NSSet setWithObjects:categorys,nil, nil]]; + [application registerUserNotificationSettings:setting];*/ + + if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { + + UIUserNotificationType myTypes = UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound; + UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:myTypes categories:nil]; + [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; + NSLog(@"current>8.0"); + } + else + { + [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeSound|UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeBadge]; + //registerForRemoteNotificationTypes this method is deprecated as of ios8; + NSLog(@"current<8.0"); + } + + 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:. +} + +-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{ + //注册成功,返回deviceToken + NSLog(@"Success"); + NSLog(@"%@",deviceToken); +} +-(void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{ + //注册失败 + NSLog(@"Failed!"); + +} + +-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{ + NSLog(@"2014"); +} + +@end diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/LaunchScreen.xib" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/LaunchScreen.xib" new file mode 100644 index 00000000..89abe59f --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/LaunchScreen.xib" @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/Main.storyboard" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/Main.storyboard" new file mode 100644 index 00000000..2373bc17 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Base.lproj/Main.storyboard" @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/Contents.json" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/Contents.json" new file mode 100644 index 00000000..118c98f7 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/Contents.json" @@ -0,0 +1,38 @@ +{ + "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/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Info.plist" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Info.plist" new file mode 100644 index 00000000..e6ac5996 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/Info.plist" @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + cn.edu.zju.cst.Tan.$(PRODUCT_NAME:rfc1034identifier) + 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/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.h" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.h" new file mode 100644 index 00000000..6f04f116 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.h" @@ -0,0 +1,15 @@ +// +// ViewController.h +// MyAPNSProject +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.m" new file mode 100644 index 00000000..06e194ed --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/ViewController.m" @@ -0,0 +1,27 @@ +// +// ViewController.m +// MyAPNSProject +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/main.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/main.m" new file mode 100644 index 00000000..21236f1a --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProject/main.m" @@ -0,0 +1,16 @@ +// +// main.m +// MyAPNSProject +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. 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/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/Info.plist" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/Info.plist" new file mode 100644 index 00000000..1574e039 --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/Info.plist" @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + cn.edu.zju.cst.Tan.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/MyAPNSProjectTests.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/MyAPNSProjectTests.m" new file mode 100644 index 00000000..a6b6f95f --- /dev/null +++ "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/MyAPNSProject/MyAPNSProjectTests/MyAPNSProjectTests.m" @@ -0,0 +1,40 @@ +// +// MyAPNSProjectTests.m +// MyAPNSProjectTests +// +// Created by cstlab on 14-11-19. +// Copyright (c) 2014年 Tan. All rights reserved. +// + +#import +#import + +@interface MyAPNSProjectTests : XCTestCase + +@end + +@implementation MyAPNSProjectTests + +- (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/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.h" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.h" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.h" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.m" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._AppDelegate.m" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.h" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.h" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.h" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.m" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._ViewController.m" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._main.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._main.m" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/._main.m" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Base.lproj/._LaunchScreen.xib" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Base.lproj/._LaunchScreen.xib" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Base.lproj/._LaunchScreen.xib" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/._Contents.json" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/._Contents.json" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProject/Images.xcassets/AppIcon.appiconset/._Contents.json" differ diff --git "a/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProjectTests/._MyAPNSProjectTests.m" "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProjectTests/._MyAPNSProjectTests.m" new file mode 100644 index 00000000..14f037e2 Binary files /dev/null and "b/yxb144325045\351\222\261\351\231\210\346\235\260/\345\244\247\344\275\234\344\270\232/MyAPNSProject/__MACOSX/MyAPNSProject/MyAPNSProjectTests/._MyAPNSProjectTests.m" differ