diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView.xcodeproj/project.pbxproj b/PaperFold-ContainmentView/PaperFold-ContainmentView.xcodeproj/project.pbxproj new file mode 100644 index 0000000..0c83733 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView.xcodeproj/project.pbxproj @@ -0,0 +1,348 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + F86CD8A115D49B7000DF9678 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F86CD8A015D49B7000DF9678 /* UIKit.framework */; }; + F86CD8A315D49B7000DF9678 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F86CD8A215D49B7000DF9678 /* Foundation.framework */; }; + F86CD8A515D49B7000DF9678 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F86CD8A415D49B7000DF9678 /* CoreGraphics.framework */; }; + F86CD8AB15D49B7000DF9678 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F86CD8A915D49B7000DF9678 /* InfoPlist.strings */; }; + F86CD8AD15D49B7000DF9678 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8AC15D49B7000DF9678 /* main.m */; }; + F86CD8B115D49B7000DF9678 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8B015D49B7000DF9678 /* AppDelegate.m */; }; + F86CD8CA15D49BB900DF9678 /* FacingView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8BD15D49BB900DF9678 /* FacingView.m */; }; + F86CD8CB15D49BB900DF9678 /* FoldView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8BF15D49BB900DF9678 /* FoldView.m */; }; + F86CD8CC15D49BB900DF9678 /* MultiFoldView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8C115D49BB900DF9678 /* MultiFoldView.m */; }; + F86CD8CD15D49BB900DF9678 /* PaperFoldView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8C315D49BB900DF9678 /* PaperFoldView.m */; }; + F86CD8CE15D49BB900DF9678 /* ShadowView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8C515D49BB900DF9678 /* ShadowView.m */; }; + F86CD8CF15D49BB900DF9678 /* TouchThroughUIView.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8C715D49BB900DF9678 /* TouchThroughUIView.m */; }; + F86CD8D015D49BB900DF9678 /* UIView+Screenshot.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8C915D49BB900DF9678 /* UIView+Screenshot.m */; }; + F86CD8D415D49BD500DF9678 /* PaperFoldNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8D315D49BD500DF9678 /* PaperFoldNavigationController.m */; }; + F86CD8D715D49C2000DF9678 /* ContentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8D615D49C2000DF9678 /* ContentViewController.m */; }; + F86CD8D915D49CAC00DF9678 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F86CD8D815D49CAC00DF9678 /* QuartzCore.framework */; }; + F86CD8DC15D49DD300DF9678 /* LeftViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8DB15D49DD300DF9678 /* LeftViewController.m */; }; + F86CD8E315D49FA800DF9678 /* RightViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F86CD8E215D49FA800DF9678 /* RightViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + F86CD89C15D49B7000DF9678 /* PaperFold-ContainmentView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PaperFold-ContainmentView.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + F86CD8A015D49B7000DF9678 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + F86CD8A215D49B7000DF9678 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + F86CD8A415D49B7000DF9678 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + F86CD8A815D49B7000DF9678 /* PaperFold-ContainmentView-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PaperFold-ContainmentView-Info.plist"; sourceTree = ""; }; + F86CD8AA15D49B7000DF9678 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + F86CD8AC15D49B7000DF9678 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + F86CD8AE15D49B7000DF9678 /* PaperFold-ContainmentView-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PaperFold-ContainmentView-Prefix.pch"; sourceTree = ""; }; + F86CD8AF15D49B7000DF9678 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + F86CD8B015D49B7000DF9678 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + F86CD8BC15D49BB900DF9678 /* FacingView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FacingView.h; sourceTree = ""; }; + F86CD8BD15D49BB900DF9678 /* FacingView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FacingView.m; sourceTree = ""; }; + F86CD8BE15D49BB900DF9678 /* FoldView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FoldView.h; sourceTree = ""; }; + F86CD8BF15D49BB900DF9678 /* FoldView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FoldView.m; sourceTree = ""; }; + F86CD8C015D49BB900DF9678 /* MultiFoldView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MultiFoldView.h; sourceTree = ""; }; + F86CD8C115D49BB900DF9678 /* MultiFoldView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MultiFoldView.m; sourceTree = ""; }; + F86CD8C215D49BB900DF9678 /* PaperFoldView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaperFoldView.h; sourceTree = ""; }; + F86CD8C315D49BB900DF9678 /* PaperFoldView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PaperFoldView.m; sourceTree = ""; }; + F86CD8C415D49BB900DF9678 /* ShadowView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowView.h; sourceTree = ""; }; + F86CD8C515D49BB900DF9678 /* ShadowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ShadowView.m; sourceTree = ""; }; + F86CD8C615D49BB900DF9678 /* TouchThroughUIView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TouchThroughUIView.h; sourceTree = ""; }; + F86CD8C715D49BB900DF9678 /* TouchThroughUIView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TouchThroughUIView.m; sourceTree = ""; }; + F86CD8C815D49BB900DF9678 /* UIView+Screenshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Screenshot.h"; sourceTree = ""; }; + F86CD8C915D49BB900DF9678 /* UIView+Screenshot.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Screenshot.m"; sourceTree = ""; }; + F86CD8D215D49BD500DF9678 /* PaperFoldNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PaperFoldNavigationController.h; sourceTree = ""; }; + F86CD8D315D49BD500DF9678 /* PaperFoldNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PaperFoldNavigationController.m; sourceTree = ""; }; + F86CD8D515D49C2000DF9678 /* ContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentViewController.h; sourceTree = ""; }; + F86CD8D615D49C2000DF9678 /* ContentViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ContentViewController.m; sourceTree = ""; }; + F86CD8D815D49CAC00DF9678 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; + F86CD8DA15D49DD300DF9678 /* LeftViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LeftViewController.h; sourceTree = ""; }; + F86CD8DB15D49DD300DF9678 /* LeftViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LeftViewController.m; sourceTree = ""; }; + F86CD8E115D49FA700DF9678 /* RightViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RightViewController.h; sourceTree = ""; }; + F86CD8E215D49FA800DF9678 /* RightViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RightViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + F86CD89915D49B7000DF9678 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F86CD8D915D49CAC00DF9678 /* QuartzCore.framework in Frameworks */, + F86CD8A115D49B7000DF9678 /* UIKit.framework in Frameworks */, + F86CD8A315D49B7000DF9678 /* Foundation.framework in Frameworks */, + F86CD8A515D49B7000DF9678 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + F86CD89115D49B7000DF9678 = { + isa = PBXGroup; + children = ( + F86CD8A615D49B7000DF9678 /* PaperFold-ContainmentView */, + F86CD89F15D49B7000DF9678 /* Frameworks */, + F86CD89D15D49B7000DF9678 /* Products */, + ); + sourceTree = ""; + }; + F86CD89D15D49B7000DF9678 /* Products */ = { + isa = PBXGroup; + children = ( + F86CD89C15D49B7000DF9678 /* PaperFold-ContainmentView.app */, + ); + name = Products; + sourceTree = ""; + }; + F86CD89F15D49B7000DF9678 /* Frameworks */ = { + isa = PBXGroup; + children = ( + F86CD8D815D49CAC00DF9678 /* QuartzCore.framework */, + F86CD8A015D49B7000DF9678 /* UIKit.framework */, + F86CD8A215D49B7000DF9678 /* Foundation.framework */, + F86CD8A415D49B7000DF9678 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + F86CD8A615D49B7000DF9678 /* PaperFold-ContainmentView */ = { + isa = PBXGroup; + children = ( + F86CD8BB15D49BB900DF9678 /* PaperFold */, + F86CD8AF15D49B7000DF9678 /* AppDelegate.h */, + F86CD8B015D49B7000DF9678 /* AppDelegate.m */, + F86CD8D515D49C2000DF9678 /* ContentViewController.h */, + F86CD8D615D49C2000DF9678 /* ContentViewController.m */, + F86CD8DA15D49DD300DF9678 /* LeftViewController.h */, + F86CD8DB15D49DD300DF9678 /* LeftViewController.m */, + F86CD8E115D49FA700DF9678 /* RightViewController.h */, + F86CD8E215D49FA800DF9678 /* RightViewController.m */, + F86CD8A715D49B7000DF9678 /* Supporting Files */, + ); + path = "PaperFold-ContainmentView"; + sourceTree = ""; + }; + F86CD8A715D49B7000DF9678 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + F86CD8A815D49B7000DF9678 /* PaperFold-ContainmentView-Info.plist */, + F86CD8A915D49B7000DF9678 /* InfoPlist.strings */, + F86CD8AC15D49B7000DF9678 /* main.m */, + F86CD8AE15D49B7000DF9678 /* PaperFold-ContainmentView-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + F86CD8BB15D49BB900DF9678 /* PaperFold */ = { + isa = PBXGroup; + children = ( + F86CD8BC15D49BB900DF9678 /* FacingView.h */, + F86CD8BD15D49BB900DF9678 /* FacingView.m */, + F86CD8BE15D49BB900DF9678 /* FoldView.h */, + F86CD8BF15D49BB900DF9678 /* FoldView.m */, + F86CD8C015D49BB900DF9678 /* MultiFoldView.h */, + F86CD8C115D49BB900DF9678 /* MultiFoldView.m */, + F86CD8C215D49BB900DF9678 /* PaperFoldView.h */, + F86CD8C315D49BB900DF9678 /* PaperFoldView.m */, + F86CD8C415D49BB900DF9678 /* ShadowView.h */, + F86CD8C515D49BB900DF9678 /* ShadowView.m */, + F86CD8C615D49BB900DF9678 /* TouchThroughUIView.h */, + F86CD8C715D49BB900DF9678 /* TouchThroughUIView.m */, + F86CD8C815D49BB900DF9678 /* UIView+Screenshot.h */, + F86CD8C915D49BB900DF9678 /* UIView+Screenshot.m */, + F86CD8D215D49BD500DF9678 /* PaperFoldNavigationController.h */, + F86CD8D315D49BD500DF9678 /* PaperFoldNavigationController.m */, + ); + name = PaperFold; + path = ../../PaperFold/PaperFold/PaperFold; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + F86CD89B15D49B7000DF9678 /* PaperFold-ContainmentView */ = { + isa = PBXNativeTarget; + buildConfigurationList = F86CD8B415D49B7000DF9678 /* Build configuration list for PBXNativeTarget "PaperFold-ContainmentView" */; + buildPhases = ( + F86CD89815D49B7000DF9678 /* Sources */, + F86CD89915D49B7000DF9678 /* Frameworks */, + F86CD89A15D49B7000DF9678 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "PaperFold-ContainmentView"; + productName = "PaperFold-ContainmentView"; + productReference = F86CD89C15D49B7000DF9678 /* PaperFold-ContainmentView.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + F86CD89315D49B7000DF9678 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0440; + ORGANIZATIONNAME = honcheng; + }; + buildConfigurationList = F86CD89615D49B7000DF9678 /* Build configuration list for PBXProject "PaperFold-ContainmentView" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = F86CD89115D49B7000DF9678; + productRefGroup = F86CD89D15D49B7000DF9678 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + F86CD89B15D49B7000DF9678 /* PaperFold-ContainmentView */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + F86CD89A15D49B7000DF9678 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F86CD8AB15D49B7000DF9678 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + F86CD89815D49B7000DF9678 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + F86CD8AD15D49B7000DF9678 /* main.m in Sources */, + F86CD8B115D49B7000DF9678 /* AppDelegate.m in Sources */, + F86CD8CA15D49BB900DF9678 /* FacingView.m in Sources */, + F86CD8CB15D49BB900DF9678 /* FoldView.m in Sources */, + F86CD8CC15D49BB900DF9678 /* MultiFoldView.m in Sources */, + F86CD8CD15D49BB900DF9678 /* PaperFoldView.m in Sources */, + F86CD8CE15D49BB900DF9678 /* ShadowView.m in Sources */, + F86CD8CF15D49BB900DF9678 /* TouchThroughUIView.m in Sources */, + F86CD8D015D49BB900DF9678 /* UIView+Screenshot.m in Sources */, + F86CD8D415D49BD500DF9678 /* PaperFoldNavigationController.m in Sources */, + F86CD8D715D49C2000DF9678 /* ContentViewController.m in Sources */, + F86CD8DC15D49DD300DF9678 /* LeftViewController.m in Sources */, + F86CD8E315D49FA800DF9678 /* RightViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + F86CD8A915D49B7000DF9678 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + F86CD8AA15D49B7000DF9678 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + F86CD8B215D49B7000DF9678 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + 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_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + SDKROOT = iphoneos; + }; + name = Debug; + }; + F86CD8B315D49B7000DF9678 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + F86CD8B515D49B7000DF9678 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "PaperFold-ContainmentView/PaperFold-ContainmentView-Prefix.pch"; + INFOPLIST_FILE = "PaperFold-ContainmentView/PaperFold-ContainmentView-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + F86CD8B615D49B7000DF9678 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "PaperFold-ContainmentView/PaperFold-ContainmentView-Prefix.pch"; + INFOPLIST_FILE = "PaperFold-ContainmentView/PaperFold-ContainmentView-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + F86CD89615D49B7000DF9678 /* Build configuration list for PBXProject "PaperFold-ContainmentView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F86CD8B215D49B7000DF9678 /* Debug */, + F86CD8B315D49B7000DF9678 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + F86CD8B415D49B7000DF9678 /* Build configuration list for PBXNativeTarget "PaperFold-ContainmentView" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F86CD8B515D49B7000DF9678 /* Debug */, + F86CD8B615D49B7000DF9678 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = F86CD89315D49B7000DF9678 /* Project object */; +} diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.h b/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.h new file mode 100644 index 0000000..7cb8367 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.m b/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.m new file mode 100644 index 0000000..6efca3a --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/AppDelegate.m @@ -0,0 +1,69 @@ +// +// AppDelegate.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import "AppDelegate.h" +#import "PaperFoldNavigationController.h" +#import "ContentViewController.h" +#import "LeftViewController.h" +#import "RightViewController.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. + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + + ContentViewController *contentViewController = [[ContentViewController alloc] initWithStyle:UITableViewStylePlain]; + UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:contentViewController]; + PaperFoldNavigationController *paperFoldNavController = [[PaperFoldNavigationController alloc] initWithRootViewController:navController]; + [self.window setRootViewController:paperFoldNavController]; + + LeftViewController *leftViewController = [[LeftViewController alloc] init]; + UINavigationController *leftNavController = [[UINavigationController alloc] initWithRootViewController:leftViewController]; + [leftNavController setNavigationBarHidden:YES]; + [paperFoldNavController setLeftViewController:leftNavController width:150]; + + RightViewController *rightViewController = [[RightViewController alloc] init]; + UINavigationController *rightNavController = [[UINavigationController alloc] initWithRootViewController:rightViewController]; + [rightNavController setNavigationBarHidden:YES]; + [paperFoldNavController setRightViewController:rightNavController width:250.0 rightViewFoldCount:3 rightViewPullFactor:0.9]; + + 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/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.h b/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.h new file mode 100644 index 0000000..ed781dd --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.h @@ -0,0 +1,13 @@ +// +// ContentViewController.h +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import + +@interface ContentViewController : UITableViewController + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.m b/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.m new file mode 100644 index 0000000..cdbba83 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/ContentViewController.m @@ -0,0 +1,55 @@ +// +// ContentViewController.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import "ContentViewController.h" + +@interface ContentViewController () + +@end + +@implementation ContentViewController + +- (id)initWithStyle:(UITableViewStyle)style +{ + self = [super initWithStyle:style]; + if (self) { + // Custom initialization + } + return self; +} + + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 10; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *CellIdentifier = @"Cell"; + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + if (!cell) cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; + return cell; +} + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewController *viewController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; + [self.navigationController pushViewController:viewController animated:YES]; +} + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.h b/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.h new file mode 100644 index 0000000..1de6c7e --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.h @@ -0,0 +1,13 @@ +// +// LeftViewController.h +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import + +@interface LeftViewController : UITableViewController + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.m b/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.m new file mode 100644 index 0000000..49e6cf1 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/LeftViewController.m @@ -0,0 +1,55 @@ +// +// LeftViewController.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import "LeftViewController.h" + +@interface LeftViewController () + +@end + +@implementation LeftViewController + +- (id)initWithStyle:(UITableViewStyle)style +{ + self = [super initWithStyle:style]; + if (self) { + // Custom initialization + } + return self; +} + + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 10; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *CellIdentifier = @"Cell"; + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + if (!cell) cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; + return cell; +} + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewController *viewController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; + [self.navigationController pushViewController:viewController animated:YES]; +} + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Info.plist b/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Info.plist new file mode 100644 index 0000000..cd1fad3 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.honcheng.${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/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Prefix.pch b/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Prefix.pch new file mode 100644 index 0000000..29f2dbb --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/PaperFold-ContainmentView-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'PaperFold-ContainmentView' target in the 'PaperFold-ContainmentView' project +// + +#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/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.h b/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.h new file mode 100644 index 0000000..d2ec512 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.h @@ -0,0 +1,13 @@ +// +// RightViewController.h +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import + +@interface RightViewController : UITableViewController + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.m b/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.m new file mode 100644 index 0000000..1f073ae --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/RightViewController.m @@ -0,0 +1,64 @@ +// +// RightViewController.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import "RightViewController.h" + +@interface RightViewController () + +@end + +@implementation RightViewController + +- (id)initWithStyle:(UITableViewStyle)style +{ + self = [super initWithStyle:style]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewWillAppear:(BOOL)animated +{ + NSLog(@"right view will appear"); +} + +- (void)viewDidAppear:(BOOL)animated +{ + NSLog(@"right view did appear"); +} + +#pragma mark - Table view data source + +- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 1; +} + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 10; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *CellIdentifier = @"Cell"; + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; + if (!cell) cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; + return cell; +} + +#pragma mark - Table view delegate + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + UITableViewController *viewController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain]; + [self.navigationController pushViewController:viewController animated:YES]; +} + +@end diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/en.lproj/InfoPlist.strings b/PaperFold-ContainmentView/PaperFold-ContainmentView/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/PaperFold-ContainmentView/PaperFold-ContainmentView/main.m b/PaperFold-ContainmentView/PaperFold-ContainmentView/main.m new file mode 100644 index 0000000..18d2161 --- /dev/null +++ b/PaperFold-ContainmentView/PaperFold-ContainmentView/main.m @@ -0,0 +1,18 @@ +// +// main.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. 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/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.h b/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.h new file mode 100644 index 0000000..06c94e0 --- /dev/null +++ b/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.h @@ -0,0 +1,18 @@ +// +// PaperFoldNavigationController.h +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import +#import "PaperFoldView.h" + +@interface PaperFoldNavigationController : UIViewController +@property (nonatomic, strong) UIViewController *rootViewController, *leftViewController, *rightViewController; +@property (nonatomic, strong) PaperFoldView *paperFoldView; +- (id)initWithRootViewController:(UIViewController*)rootViewController; +- (void)setLeftViewController:(UIViewController *)leftViewController width:(float)width; +- (void)setRightViewController:(UIViewController*)rightViewController width:(float)width rightViewFoldCount:(int)rightViewFoldCount rightViewPullFactor:(float)rightViewPullFactor; +@end diff --git a/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.m b/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.m new file mode 100644 index 0000000..7f068dd --- /dev/null +++ b/PaperFold/PaperFold/PaperFold/PaperFoldNavigationController.m @@ -0,0 +1,72 @@ +// +// PaperFoldNavigationController.m +// PaperFold-ContainmentView +// +// Created by honcheng on 10/8/12. +// Copyright (c) 2012 honcheng. All rights reserved. +// + +#import "PaperFoldNavigationController.h" + +@interface PaperFoldNavigationController () + +@end + +@implementation PaperFoldNavigationController + +- (id)initWithRootViewController:(UIViewController*)rootViewController +{ + self = [super init]; + if (self) { + + [self.view setAutoresizesSubviews:YES]; + + _paperFoldView = [[PaperFoldView alloc] initWithFrame:CGRectMake(0,0,[self.view bounds].size.width,[self.view bounds].size.height)]; + [self.view addSubview:_paperFoldView]; + [_paperFoldView setDelegate:self]; + [_paperFoldView setAutoresizingMask:UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth]; + + _rootViewController = rootViewController; + [_rootViewController.view setFrame:CGRectMake(0,0,[self.view bounds].size.width,[self.view bounds].size.height)]; + [_rootViewController.view setAutoresizingMask:UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth]; + [_paperFoldView setCenterContentView:_rootViewController.view]; + } + return self; +} + +- (void)setRightViewController:(UIViewController*)rightViewController width:(float)width rightViewFoldCount:(int)rightViewFoldCount rightViewPullFactor:(float)rightViewPullFactor +{ + _rightViewController = rightViewController; + + [self.rightViewController.view setFrame:CGRectMake(0,0,width,[self.view bounds].size.height)]; + [self.paperFoldView setRightFoldContentView:self.rightViewController.view rightViewFoldCount:rightViewFoldCount rightViewPullFactor:rightViewPullFactor]; +} + +- (void)setLeftViewController:(UIViewController *)leftViewController width:(float)width +{ + _leftViewController = leftViewController; + + [self.leftViewController.view setFrame:CGRectMake(0,0,width,[self.view bounds].size.height)]; + [self.paperFoldView setLeftFoldContentView:self.leftViewController.view]; +} + +- (void)paperFoldView:(id)paperFoldView didFoldAutomatically:(BOOL)automated toState:(PaperFoldState)paperFoldState +{ + if (paperFoldState==PaperFoldStateDefault) + { + [self.leftViewController viewWillAppear:YES]; + [self.leftViewController viewDidAppear:YES]; + } + else if (paperFoldState==PaperFoldStateLeftUnfolded) + { + [self.rootViewController viewWillAppear:YES]; + [self.rootViewController viewDidAppear:YES]; + } + else if (paperFoldState==PaperFoldStateRightUnfolded) + { + [self.rightViewController viewWillAppear:YES]; + [self.rightViewController viewDidAppear:YES]; + } +} + +@end diff --git a/PaperFold/PaperFold/PaperFold/PaperFoldView.m b/PaperFold/PaperFold/PaperFold/PaperFoldView.m index 3121baa..50ba204 100644 --- a/PaperFold/PaperFold/PaperFold/PaperFoldView.m +++ b/PaperFold/PaperFold/PaperFold/PaperFoldView.m @@ -82,6 +82,11 @@ - (void)setLeftFoldContentView:(UIView*)view [self.leftFoldView setContent:view]; [view setAutoresizingMask:UIViewAutoresizingFlexibleHeight]; [self setPaperFoldState:PaperFoldStateDefault]; + + UIView *line = [[UIView alloc] initWithFrame:CGRectMake(-1,0,1,self.frame.size.height)]; + [line setAutoresizingMask:UIViewAutoresizingFlexibleHeight]; + [self.contentView addSubview:line]; + [line setBackgroundColor:[UIColor colorWithWhite:0.9 alpha:0.5]]; } - (void)setRightFoldContentView:(UIView*)view rightViewFoldCount:(int)rightViewFoldCount rightViewPullFactor:(float)rightViewPullFactor @@ -92,6 +97,12 @@ - (void)setRightFoldContentView:(UIView*)view rightViewFoldCount:(int)rightViewF [self.rightFoldView setContent:view]; [view setAutoresizingMask:UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth]; [self setPaperFoldState:PaperFoldStateDefault]; + + UIView *line = [[UIView alloc] initWithFrame:CGRectMake(self.contentView.frame.size.width,0,1,self.frame.size.height)]; + [line setAutoresizingMask:UIViewAutoresizingFlexibleHeight]; + [self.contentView addSubview:line]; + [line setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleHeight]; + [line setBackgroundColor:[UIColor colorWithWhite:0.9 alpha:0.5]]; } - (void)onContentViewPanned:(UIPanGestureRecognizer*)gesture