diff --git a/.gitignore b/.gitignore index 6e13704..3530302 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,4 @@ DerivedData *.xccheckout #CocoaPods -Pods +Pods \ No newline at end of file diff --git a/UIDynamicExample.xcodeproj/project.pbxproj b/UIDynamicExample.xcodeproj/project.pbxproj new file mode 100644 index 0000000..02a86ad --- /dev/null +++ b/UIDynamicExample.xcodeproj/project.pbxproj @@ -0,0 +1,473 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 3686775E1916DCD6540F2499 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 368671A593EC171709730665 /* MainViewController.m */; }; + 49C3E9D3182C3870002D8841 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9D2182C3870002D8841 /* Foundation.framework */; }; + 49C3E9D5182C3870002D8841 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9D4182C3870002D8841 /* CoreGraphics.framework */; }; + 49C3E9D7182C3870002D8841 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9D6182C3870002D8841 /* UIKit.framework */; }; + 49C3E9DD182C3870002D8841 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 49C3E9DB182C3870002D8841 /* InfoPlist.strings */; }; + 49C3E9DF182C3870002D8841 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 49C3E9DE182C3870002D8841 /* main.m */; }; + 49C3E9E3182C3870002D8841 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 49C3E9E2182C3870002D8841 /* AppDelegate.m */; }; + 49C3E9E5182C3870002D8841 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 49C3E9E4182C3870002D8841 /* Images.xcassets */; }; + 49C3E9EC182C3870002D8841 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9EB182C3870002D8841 /* XCTest.framework */; }; + 49C3E9ED182C3870002D8841 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9D2182C3870002D8841 /* Foundation.framework */; }; + 49C3E9EE182C3870002D8841 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49C3E9D6182C3870002D8841 /* UIKit.framework */; }; + 49C3E9F6182C3870002D8841 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 49C3E9F4182C3870002D8841 /* InfoPlist.strings */; }; + 49C3E9F8182C3870002D8841 /* UIDynamicExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 49C3E9F7182C3870002D8841 /* UIDynamicExampleTests.m */; }; + 49C3EA03182C3901002D8841 /* PendulumView.m in Sources */ = {isa = PBXBuildFile; fileRef = 49C3EA02182C3901002D8841 /* PendulumView.m */; }; + 49C3EA06182C3965002D8841 /* PendulumViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 49C3EA05182C3965002D8841 /* PendulumViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 49C3E9EF182C3870002D8841 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 49C3E9C7182C3870002D8841 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 49C3E9CE182C3870002D8841; + remoteInfo = UIDynamicExample; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 36867196D14AE983965C51FC /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = ""; }; + 368671A593EC171709730665 /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = ""; }; + 49C3E9CF182C3870002D8841 /* UIDynamicExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIDynamicExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 49C3E9D2182C3870002D8841 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 49C3E9D4182C3870002D8841 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 49C3E9D6182C3870002D8841 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 49C3E9DA182C3870002D8841 /* UIDynamicExample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UIDynamicExample-Info.plist"; sourceTree = ""; }; + 49C3E9DC182C3870002D8841 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 49C3E9DE182C3870002D8841 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 49C3E9E0182C3870002D8841 /* UIDynamicExample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIDynamicExample-Prefix.pch"; sourceTree = ""; }; + 49C3E9E1182C3870002D8841 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 49C3E9E2182C3870002D8841 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 49C3E9E4182C3870002D8841 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 49C3E9EA182C3870002D8841 /* UIDynamicExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UIDynamicExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 49C3E9EB182C3870002D8841 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 49C3E9F3182C3870002D8841 /* UIDynamicExampleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UIDynamicExampleTests-Info.plist"; sourceTree = ""; }; + 49C3E9F5182C3870002D8841 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 49C3E9F7182C3870002D8841 /* UIDynamicExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UIDynamicExampleTests.m; sourceTree = ""; }; + 49C3EA01182C3901002D8841 /* PendulumView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PendulumView.h; sourceTree = ""; }; + 49C3EA02182C3901002D8841 /* PendulumView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PendulumView.m; sourceTree = ""; }; + 49C3EA04182C3965002D8841 /* PendulumViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PendulumViewController.h; sourceTree = ""; }; + 49C3EA05182C3965002D8841 /* PendulumViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PendulumViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 49C3E9CC182C3870002D8841 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9D5182C3870002D8841 /* CoreGraphics.framework in Frameworks */, + 49C3E9D7182C3870002D8841 /* UIKit.framework in Frameworks */, + 49C3E9D3182C3870002D8841 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49C3E9E7182C3870002D8841 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9EC182C3870002D8841 /* XCTest.framework in Frameworks */, + 49C3E9EE182C3870002D8841 /* UIKit.framework in Frameworks */, + 49C3E9ED182C3870002D8841 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 49C3E9C6182C3870002D8841 = { + isa = PBXGroup; + children = ( + 49C3E9D8182C3870002D8841 /* UIDynamicExample */, + 49C3E9F1182C3870002D8841 /* UIDynamicExampleTests */, + 49C3E9D1182C3870002D8841 /* Frameworks */, + 49C3E9D0182C3870002D8841 /* Products */, + ); + sourceTree = ""; + }; + 49C3E9D0182C3870002D8841 /* Products */ = { + isa = PBXGroup; + children = ( + 49C3E9CF182C3870002D8841 /* UIDynamicExample.app */, + 49C3E9EA182C3870002D8841 /* UIDynamicExampleTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 49C3E9D1182C3870002D8841 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 49C3E9D2182C3870002D8841 /* Foundation.framework */, + 49C3E9D4182C3870002D8841 /* CoreGraphics.framework */, + 49C3E9D6182C3870002D8841 /* UIKit.framework */, + 49C3E9EB182C3870002D8841 /* XCTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 49C3E9D8182C3870002D8841 /* UIDynamicExample */ = { + isa = PBXGroup; + children = ( + 49C3E9E1182C3870002D8841 /* AppDelegate.h */, + 49C3E9E2182C3870002D8841 /* AppDelegate.m */, + 49C3EA04182C3965002D8841 /* PendulumViewController.h */, + 49C3EA05182C3965002D8841 /* PendulumViewController.m */, + 49C3E9E4182C3870002D8841 /* Images.xcassets */, + 49C3E9D9182C3870002D8841 /* Supporting Files */, + 49C3EA01182C3901002D8841 /* PendulumView.h */, + 49C3EA02182C3901002D8841 /* PendulumView.m */, + 368671A593EC171709730665 /* MainViewController.m */, + 36867196D14AE983965C51FC /* MainViewController.h */, + ); + path = UIDynamicExample; + sourceTree = ""; + }; + 49C3E9D9182C3870002D8841 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 49C3E9DA182C3870002D8841 /* UIDynamicExample-Info.plist */, + 49C3E9DB182C3870002D8841 /* InfoPlist.strings */, + 49C3E9DE182C3870002D8841 /* main.m */, + 49C3E9E0182C3870002D8841 /* UIDynamicExample-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 49C3E9F1182C3870002D8841 /* UIDynamicExampleTests */ = { + isa = PBXGroup; + children = ( + 49C3E9F7182C3870002D8841 /* UIDynamicExampleTests.m */, + 49C3E9F2182C3870002D8841 /* Supporting Files */, + ); + path = UIDynamicExampleTests; + sourceTree = ""; + }; + 49C3E9F2182C3870002D8841 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 49C3E9F3182C3870002D8841 /* UIDynamicExampleTests-Info.plist */, + 49C3E9F4182C3870002D8841 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 49C3E9CE182C3870002D8841 /* UIDynamicExample */ = { + isa = PBXNativeTarget; + buildConfigurationList = 49C3E9FB182C3870002D8841 /* Build configuration list for PBXNativeTarget "UIDynamicExample" */; + buildPhases = ( + 49C3E9CB182C3870002D8841 /* Sources */, + 49C3E9CC182C3870002D8841 /* Frameworks */, + 49C3E9CD182C3870002D8841 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = UIDynamicExample; + productName = UIDynamicExample; + productReference = 49C3E9CF182C3870002D8841 /* UIDynamicExample.app */; + productType = "com.apple.product-type.application"; + }; + 49C3E9E9182C3870002D8841 /* UIDynamicExampleTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 49C3E9FE182C3870002D8841 /* Build configuration list for PBXNativeTarget "UIDynamicExampleTests" */; + buildPhases = ( + 49C3E9E6182C3870002D8841 /* Sources */, + 49C3E9E7182C3870002D8841 /* Frameworks */, + 49C3E9E8182C3870002D8841 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 49C3E9F0182C3870002D8841 /* PBXTargetDependency */, + ); + name = UIDynamicExampleTests; + productName = UIDynamicExampleTests; + productReference = 49C3E9EA182C3870002D8841 /* UIDynamicExampleTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 49C3E9C7182C3870002D8841 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0500; + TargetAttributes = { + 49C3E9E9182C3870002D8841 = { + TestTargetID = 49C3E9CE182C3870002D8841 /* UIDynamicExample */; + }; + }; + }; + buildConfigurationList = 49C3E9CA182C3870002D8841 /* Build configuration list for PBXProject "UIDynamicExample" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 49C3E9C6182C3870002D8841; + productRefGroup = 49C3E9D0182C3870002D8841 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 49C3E9CE182C3870002D8841 /* UIDynamicExample */, + 49C3E9E9182C3870002D8841 /* UIDynamicExampleTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 49C3E9CD182C3870002D8841 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9DD182C3870002D8841 /* InfoPlist.strings in Resources */, + 49C3E9E5182C3870002D8841 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49C3E9E8182C3870002D8841 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9F6182C3870002D8841 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 49C3E9CB182C3870002D8841 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9E3182C3870002D8841 /* AppDelegate.m in Sources */, + 49C3E9DF182C3870002D8841 /* main.m in Sources */, + 49C3EA03182C3901002D8841 /* PendulumView.m in Sources */, + 49C3EA06182C3965002D8841 /* PendulumViewController.m in Sources */, + 3686775E1916DCD6540F2499 /* MainViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 49C3E9E6182C3870002D8841 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 49C3E9F8182C3870002D8841 /* UIDynamicExampleTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 49C3E9F0182C3870002D8841 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 49C3E9CE182C3870002D8841 /* UIDynamicExample */; + targetProxy = 49C3E9EF182C3870002D8841 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 49C3E9DB182C3870002D8841 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 49C3E9DC182C3870002D8841 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 49C3E9F4182C3870002D8841 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 49C3E9F5182C3870002D8841 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 49C3E9F9182C3870002D8841 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + 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__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + 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; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 49C3E9FA182C3870002D8841 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + 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__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + 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; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 49C3E9FC182C3870002D8841 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "UIDynamicExample/UIDynamicExample-Prefix.pch"; + INFOPLIST_FILE = "UIDynamicExample/UIDynamicExample-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 49C3E9FD182C3870002D8841 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "UIDynamicExample/UIDynamicExample-Prefix.pch"; + INFOPLIST_FILE = "UIDynamicExample/UIDynamicExample-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + 49C3E9FF182C3870002D8841 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UIDynamicExample.app/UIDynamicExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "UIDynamicExample/UIDynamicExample-Prefix.pch"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = "UIDynamicExampleTests/UIDynamicExampleTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Debug; + }; + 49C3EA00182C3870002D8841 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/UIDynamicExample.app/UIDynamicExample"; + FRAMEWORK_SEARCH_PATHS = ( + "$(SDKROOT)/Developer/Library/Frameworks", + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "UIDynamicExample/UIDynamicExample-Prefix.pch"; + INFOPLIST_FILE = "UIDynamicExampleTests/UIDynamicExampleTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = xctest; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 49C3E9CA182C3870002D8841 /* Build configuration list for PBXProject "UIDynamicExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 49C3E9F9182C3870002D8841 /* Debug */, + 49C3E9FA182C3870002D8841 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 49C3E9FB182C3870002D8841 /* Build configuration list for PBXNativeTarget "UIDynamicExample" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 49C3E9FC182C3870002D8841 /* Debug */, + 49C3E9FD182C3870002D8841 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; + 49C3E9FE182C3870002D8841 /* Build configuration list for PBXNativeTarget "UIDynamicExampleTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 49C3E9FF182C3870002D8841 /* Debug */, + 49C3EA00182C3870002D8841 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 49C3E9C7182C3870002D8841 /* Project object */; +} diff --git a/UIDynamicExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/UIDynamicExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..801da95 --- /dev/null +++ b/UIDynamicExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/UIDynamicExample/AppDelegate.h b/UIDynamicExample/AppDelegate.h new file mode 100644 index 0000000..1dc203f --- /dev/null +++ b/UIDynamicExample/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/UIDynamicExample/AppDelegate.m b/UIDynamicExample/AppDelegate.m new file mode 100644 index 0000000..11dc9de --- /dev/null +++ b/UIDynamicExample/AppDelegate.m @@ -0,0 +1,56 @@ +// +// AppDelegate.m +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import "AppDelegate.h" +#import "PendulumViewController.h" +#import "MainViewController.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + // Override point for customization after application launch. + + MainViewController *mainViewController = [[MainViewController alloc] init]; + PendulumViewController *pendulumViewController = [[PendulumViewController alloc]init]; + [mainViewController setViewControllers:@[pendulumViewController]]; + self.window.backgroundColor = [UIColor whiteColor]; + self.window.rootViewController = mainViewController; + [self.window makeKeyAndVisible]; + 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/UIDynamicExample/Images.xcassets/AppIcon.appiconset/Contents.json b/UIDynamicExample/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a396706 --- /dev/null +++ b/UIDynamicExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/UIDynamicExample/Images.xcassets/LaunchImage.launchimage/Contents.json b/UIDynamicExample/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..c79ebd3 --- /dev/null +++ b/UIDynamicExample/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/UIDynamicExample/MainViewController.h b/UIDynamicExample/MainViewController.h new file mode 100644 index 0000000..e7e6899 --- /dev/null +++ b/UIDynamicExample/MainViewController.h @@ -0,0 +1,4 @@ +#import + +@interface MainViewController : UITabBarController +@end \ No newline at end of file diff --git a/UIDynamicExample/MainViewController.m b/UIDynamicExample/MainViewController.m new file mode 100644 index 0000000..ac23e7c --- /dev/null +++ b/UIDynamicExample/MainViewController.m @@ -0,0 +1,6 @@ +#import "MainViewController.h" + +@implementation MainViewController { + +} +@end \ No newline at end of file diff --git a/UIDynamicExample/PendulumView.h b/UIDynamicExample/PendulumView.h new file mode 100644 index 0000000..4a84078 --- /dev/null +++ b/UIDynamicExample/PendulumView.h @@ -0,0 +1,13 @@ +// +// PendulumView.h +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import + +@interface PendulumView : UIView + +@end diff --git a/UIDynamicExample/PendulumView.m b/UIDynamicExample/PendulumView.m new file mode 100644 index 0000000..87628bc --- /dev/null +++ b/UIDynamicExample/PendulumView.m @@ -0,0 +1,36 @@ +// +// PendulumView.m +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import "PendulumView.h" + +@implementation PendulumView + +- (id)init +{ + self = [super init]; + if (self) { + [self buildPendulum]; + } + return self; +} + +- (void)buildPendulum { + UIView *ballBearing = [[UIView alloc] initWithFrame:CGRectMake(0,0,40,40)]; + ballBearing.backgroundColor = [UIColor lightGrayColor]; + ballBearing.layer.cornerRadius = 10; + ballBearing.layer.borderColor = [UIColor grayColor].CGColor; + ballBearing.layer.borderWidth = 2; + ballBearing.center = CGPointMake(200, 300); + [self addSubview:ballBearing]; +} + +- (void)addPendulumBehaviour { + UIDynamicAnimator *animator = [[UIDynamicAnimator alloc] initWithReferenceView:self]; +} + +@end diff --git a/UIDynamicExample/PendulumViewController.h b/UIDynamicExample/PendulumViewController.h new file mode 100644 index 0000000..0468cc1 --- /dev/null +++ b/UIDynamicExample/PendulumViewController.h @@ -0,0 +1,13 @@ +// +// PendulumViewController.h +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import + +@interface PendulumViewController : UIViewController + +@end diff --git a/UIDynamicExample/PendulumViewController.m b/UIDynamicExample/PendulumViewController.m new file mode 100644 index 0000000..1c58a93 --- /dev/null +++ b/UIDynamicExample/PendulumViewController.m @@ -0,0 +1,43 @@ +// +// PendulumViewController.m +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import "PendulumViewController.h" +#import "PendulumView.h" + +@interface PendulumViewController () + +@end + +@implementation PendulumViewController + +- (id) init{ + self = [super init]; + if(self != nil){ + [self.tabBarItem setTitle:@"Pendulum"]; + } + return self; +} + +- (void)loadView{ + self.view = [[PendulumView alloc]init]; + NSLog(@"load view"); +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/UIDynamicExample/UIDynamicExample-Info.plist b/UIDynamicExample/UIDynamicExample-Info.plist new file mode 100644 index 0000000..7442b04 --- /dev/null +++ b/UIDynamicExample/UIDynamicExample-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + xiaodao.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/UIDynamicExample/UIDynamicExample-Prefix.pch b/UIDynamicExample/UIDynamicExample-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/UIDynamicExample/UIDynamicExample-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/UIDynamicExample/en.lproj/InfoPlist.strings b/UIDynamicExample/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/UIDynamicExample/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/UIDynamicExample/main.m b/UIDynamicExample/main.m new file mode 100644 index 0000000..cdfc3d0 --- /dev/null +++ b/UIDynamicExample/main.m @@ -0,0 +1,18 @@ +// +// main.m +// UIDynamicExample +// +// Created by jli on 11/8/13. +// +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/UIDynamicExampleTests/UIDynamicExampleTests-Info.plist b/UIDynamicExampleTests/UIDynamicExampleTests-Info.plist new file mode 100644 index 0000000..b833866 --- /dev/null +++ b/UIDynamicExampleTests/UIDynamicExampleTests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + xiaodao.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/UIDynamicExampleTests/UIDynamicExampleTests.m b/UIDynamicExampleTests/UIDynamicExampleTests.m new file mode 100644 index 0000000..a9ef993 --- /dev/null +++ b/UIDynamicExampleTests/UIDynamicExampleTests.m @@ -0,0 +1,34 @@ +// +// UIDynamicExampleTests.m +// UIDynamicExampleTests +// +// Created by jli on 11/8/13. +// +// + +#import + +@interface UIDynamicExampleTests : XCTestCase + +@end + +@implementation UIDynamicExampleTests + +- (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 +{ + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); +} + +@end diff --git a/UIDynamicExampleTests/en.lproj/InfoPlist.strings b/UIDynamicExampleTests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/UIDynamicExampleTests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ +