├── .gitignore ├── .travis.yml ├── Example ├── LHNavigationController.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── LHNavigationController-Example.xcscheme ├── LHNavigationController.xcworkspace │ └── contents.xcworkspacedata ├── LHNavigationController │ ├── FirstViewController.h │ ├── FirstViewController.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ └── launchScreen.png │ ├── LHAppDelegate.h │ ├── LHAppDelegate.m │ ├── LHNavigationController-Info.plist │ ├── LHNavigationController-Prefix.pch │ ├── Main.storyboard │ ├── SecondViewController.h │ ├── SecondViewController.m │ ├── ThridViewController.h │ ├── ThridViewController.m │ ├── backIcon@2x.png │ ├── en.lproj │ │ └── InfoPlist.strings │ ├── main.m │ └── s.jpg ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── LHNavigationController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── LHNavigationController │ │ ├── Info.plist │ │ ├── LHNavigationController-dummy.m │ │ ├── LHNavigationController-prefix.pch │ │ ├── LHNavigationController-umbrella.h │ │ ├── LHNavigationController.modulemap │ │ └── LHNavigationController.xcconfig │ │ ├── Pods-LHNavigationController_Example │ │ ├── Info.plist │ │ ├── Pods-LHNavigationController_Example-acknowledgements.markdown │ │ ├── Pods-LHNavigationController_Example-acknowledgements.plist │ │ ├── Pods-LHNavigationController_Example-dummy.m │ │ ├── Pods-LHNavigationController_Example-frameworks.sh │ │ ├── Pods-LHNavigationController_Example-resources.sh │ │ ├── Pods-LHNavigationController_Example-umbrella.h │ │ ├── Pods-LHNavigationController_Example.debug.xcconfig │ │ ├── Pods-LHNavigationController_Example.modulemap │ │ └── Pods-LHNavigationController_Example.release.xcconfig │ │ └── Pods-LHNavigationController_Tests │ │ ├── Info.plist │ │ ├── Pods-LHNavigationController_Tests-acknowledgements.markdown │ │ ├── Pods-LHNavigationController_Tests-acknowledgements.plist │ │ ├── Pods-LHNavigationController_Tests-dummy.m │ │ ├── Pods-LHNavigationController_Tests-frameworks.sh │ │ ├── Pods-LHNavigationController_Tests-resources.sh │ │ ├── Pods-LHNavigationController_Tests-umbrella.h │ │ ├── Pods-LHNavigationController_Tests.debug.xcconfig │ │ ├── Pods-LHNavigationController_Tests.modulemap │ │ └── Pods-LHNavigationController_Tests.release.xcconfig └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── LHNavigationController.podspec ├── LHNavigationController ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── LH3DAnimator.h │ ├── LH3DAnimator.m │ ├── LHBaseAnimator.h │ ├── LHBaseAnimator.m │ ├── LHCollectionViewController.h │ ├── LHCollectionViewController.m │ ├── LHDefaultAnimator.h │ ├── LHDefaultAnimator.m │ ├── LHNavigation.h │ ├── LHNavigationController.h │ ├── LHNavigationController.m │ ├── LHTableViewController.h │ ├── LHTableViewController.m │ ├── LHViewController.h │ ├── LHViewController.m │ ├── UIViewController+LHNavigation.h │ └── UIViewController+LHNavigation.m ├── LICENSE ├── README.md ├── ScreenShots ├── gif.gif └── gif2.gif ├── SwiftExample ├── Podfile ├── Podfile.lock ├── Pods │ ├── LHNavigationController │ │ ├── LICENSE │ │ └── README.md │ ├── Local Podspecs │ │ └── LHNavigationController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── LHNavigationController │ │ ├── Info.plist │ │ ├── LHNavigationController-dummy.m │ │ ├── LHNavigationController-prefix.pch │ │ ├── LHNavigationController-umbrella.h │ │ ├── LHNavigationController.modulemap │ │ └── LHNavigationController.xcconfig │ │ └── Pods-SwiftExample │ │ ├── Info.plist │ │ ├── Pods-SwiftExample-acknowledgements.markdown │ │ ├── Pods-SwiftExample-acknowledgements.plist │ │ ├── Pods-SwiftExample-dummy.m │ │ ├── Pods-SwiftExample-frameworks.sh │ │ ├── Pods-SwiftExample-resources.sh │ │ ├── Pods-SwiftExample-umbrella.h │ │ ├── Pods-SwiftExample.debug.xcconfig │ │ ├── Pods-SwiftExample.modulemap │ │ └── Pods-SwiftExample.release.xcconfig ├── SwiftExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── SwiftExample.xcworkspace │ └── contents.xcworkspacedata └── SwiftExample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── SecondController.swift │ └── ViewController.swift └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/LHNavigationController.xcworkspace -scheme LHNavigationController-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Example/LHNavigationController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 525A82581D22456F0021E4BB /* ThridViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 525A82571D22456F0021E4BB /* ThridViewController.m */; }; 11 | 526003D51D18EA9C00B15B62 /* s.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 526003D41D18EA9C00B15B62 /* s.jpg */; }; 12 | 52C5E11D1D1FD0B400B7FCB1 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 52C5E11C1D1FD0B400B7FCB1 /* FirstViewController.m */; }; 13 | 52C5E1241D1FDB5200B7FCB1 /* SecondViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 52C5E1231D1FDB5200B7FCB1 /* SecondViewController.m */; }; 14 | 52C5E12E1D1FE68D00B7FCB1 /* backIcon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 52C5E12D1D1FE68D00B7FCB1 /* backIcon@2x.png */; }; 15 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 16 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 17 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 18 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 19 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 20 | 6003F59E195388D20070C39A /* LHAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* LHAppDelegate.m */; }; 21 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 22 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 23 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 24 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 25 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 26 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 27 | 6CA4E5747D638AC577E6561D /* Pods_LHNavigationController_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F24045B741F63D7C2800679A /* Pods_LHNavigationController_Tests.framework */; }; 28 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 29 | E84143111F7EEFC69A546F19 /* Pods_LHNavigationController_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 79A912761AEA00B8BBF8209D /* Pods_LHNavigationController_Example.framework */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 6003F582195388D10070C39A /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 6003F589195388D20070C39A; 38 | remoteInfo = LHNavigationController; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 193858EBD53E936AB1E3512A /* Pods-LHNavigationController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LHNavigationController_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests.debug.xcconfig"; sourceTree = ""; }; 44 | 523D8423E50DF7025D8F86F5 /* Pods-LHNavigationController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LHNavigationController_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests.release.xcconfig"; sourceTree = ""; }; 45 | 525A82561D22456F0021E4BB /* ThridViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ThridViewController.h; sourceTree = ""; }; 46 | 525A82571D22456F0021E4BB /* ThridViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ThridViewController.m; sourceTree = ""; }; 47 | 526003D41D18EA9C00B15B62 /* s.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = s.jpg; sourceTree = ""; }; 48 | 52C5E11B1D1FD0B400B7FCB1 /* FirstViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FirstViewController.h; sourceTree = ""; }; 49 | 52C5E11C1D1FD0B400B7FCB1 /* FirstViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FirstViewController.m; sourceTree = ""; }; 50 | 52C5E1221D1FDB5200B7FCB1 /* SecondViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecondViewController.h; sourceTree = ""; }; 51 | 52C5E1231D1FDB5200B7FCB1 /* SecondViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecondViewController.m; sourceTree = ""; }; 52 | 52C5E12D1D1FE68D00B7FCB1 /* backIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "backIcon@2x.png"; sourceTree = ""; }; 53 | 6003F58A195388D20070C39A /* LHNavigationController_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LHNavigationController_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 55 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 56 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 57 | 6003F595195388D20070C39A /* LHNavigationController-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "LHNavigationController-Info.plist"; sourceTree = ""; }; 58 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 59 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 60 | 6003F59B195388D20070C39A /* LHNavigationController-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LHNavigationController-Prefix.pch"; sourceTree = ""; }; 61 | 6003F59C195388D20070C39A /* LHAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LHAppDelegate.h; sourceTree = ""; }; 62 | 6003F59D195388D20070C39A /* LHAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LHAppDelegate.m; sourceTree = ""; }; 63 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 64 | 6003F5AE195388D20070C39A /* LHNavigationController_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LHNavigationController_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 66 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 67 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 68 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 69 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 70 | 69BE4212DED7A2D2C04F1470 /* LHNavigationController.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LHNavigationController.podspec; path = ../LHNavigationController.podspec; sourceTree = ""; }; 71 | 79A912761AEA00B8BBF8209D /* Pods_LHNavigationController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LHNavigationController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 72 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 73 | A79300834DDBA7FB3F756412 /* Pods-LHNavigationController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LHNavigationController_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example.release.xcconfig"; sourceTree = ""; }; 74 | C0522229E129E1FF92D4CF3A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 75 | CA80CA8E50AF83C429AC28C1 /* Pods-LHNavigationController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LHNavigationController_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example.debug.xcconfig"; sourceTree = ""; }; 76 | F24045B741F63D7C2800679A /* Pods_LHNavigationController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LHNavigationController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 77 | FF23656087CEC6BC8CDEC0B4 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 78 | /* End PBXFileReference section */ 79 | 80 | /* Begin PBXFrameworksBuildPhase section */ 81 | 6003F587195388D20070C39A /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 86 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 87 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 88 | E84143111F7EEFC69A546F19 /* Pods_LHNavigationController_Example.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | 6003F5AB195388D20070C39A /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 97 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 98 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 99 | 6CA4E5747D638AC577E6561D /* Pods_LHNavigationController_Tests.framework in Frameworks */, 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | /* End PBXFrameworksBuildPhase section */ 104 | 105 | /* Begin PBXGroup section */ 106 | 172202A6FF46337BE0284CD9 /* Pods */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | CA80CA8E50AF83C429AC28C1 /* Pods-LHNavigationController_Example.debug.xcconfig */, 110 | A79300834DDBA7FB3F756412 /* Pods-LHNavigationController_Example.release.xcconfig */, 111 | 193858EBD53E936AB1E3512A /* Pods-LHNavigationController_Tests.debug.xcconfig */, 112 | 523D8423E50DF7025D8F86F5 /* Pods-LHNavigationController_Tests.release.xcconfig */, 113 | ); 114 | name = Pods; 115 | sourceTree = ""; 116 | }; 117 | 6003F581195388D10070C39A = { 118 | isa = PBXGroup; 119 | children = ( 120 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 121 | 6003F593195388D20070C39A /* Example for LHNavigationController */, 122 | 6003F5B5195388D20070C39A /* Tests */, 123 | 6003F58C195388D20070C39A /* Frameworks */, 124 | 6003F58B195388D20070C39A /* Products */, 125 | 172202A6FF46337BE0284CD9 /* Pods */, 126 | ); 127 | sourceTree = ""; 128 | }; 129 | 6003F58B195388D20070C39A /* Products */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 6003F58A195388D20070C39A /* LHNavigationController_Example.app */, 133 | 6003F5AE195388D20070C39A /* LHNavigationController_Tests.xctest */, 134 | ); 135 | name = Products; 136 | sourceTree = ""; 137 | }; 138 | 6003F58C195388D20070C39A /* Frameworks */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 6003F58D195388D20070C39A /* Foundation.framework */, 142 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 143 | 6003F591195388D20070C39A /* UIKit.framework */, 144 | 6003F5AF195388D20070C39A /* XCTest.framework */, 145 | 79A912761AEA00B8BBF8209D /* Pods_LHNavigationController_Example.framework */, 146 | F24045B741F63D7C2800679A /* Pods_LHNavigationController_Tests.framework */, 147 | ); 148 | name = Frameworks; 149 | sourceTree = ""; 150 | }; 151 | 6003F593195388D20070C39A /* Example for LHNavigationController */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 526003D41D18EA9C00B15B62 /* s.jpg */, 155 | 52C5E12D1D1FE68D00B7FCB1 /* backIcon@2x.png */, 156 | 6003F59C195388D20070C39A /* LHAppDelegate.h */, 157 | 6003F59D195388D20070C39A /* LHAppDelegate.m */, 158 | 52C5E11B1D1FD0B400B7FCB1 /* FirstViewController.h */, 159 | 52C5E11C1D1FD0B400B7FCB1 /* FirstViewController.m */, 160 | 52C5E1221D1FDB5200B7FCB1 /* SecondViewController.h */, 161 | 52C5E1231D1FDB5200B7FCB1 /* SecondViewController.m */, 162 | 525A82561D22456F0021E4BB /* ThridViewController.h */, 163 | 525A82571D22456F0021E4BB /* ThridViewController.m */, 164 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 165 | 6003F5A8195388D20070C39A /* Images.xcassets */, 166 | 6003F594195388D20070C39A /* Supporting Files */, 167 | ); 168 | name = "Example for LHNavigationController"; 169 | path = LHNavigationController; 170 | sourceTree = ""; 171 | }; 172 | 6003F594195388D20070C39A /* Supporting Files */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 6003F595195388D20070C39A /* LHNavigationController-Info.plist */, 176 | 6003F596195388D20070C39A /* InfoPlist.strings */, 177 | 6003F599195388D20070C39A /* main.m */, 178 | 6003F59B195388D20070C39A /* LHNavigationController-Prefix.pch */, 179 | ); 180 | name = "Supporting Files"; 181 | sourceTree = ""; 182 | }; 183 | 6003F5B5195388D20070C39A /* Tests */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | 6003F5BB195388D20070C39A /* Tests.m */, 187 | 6003F5B6195388D20070C39A /* Supporting Files */, 188 | ); 189 | path = Tests; 190 | sourceTree = ""; 191 | }; 192 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 196 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 197 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 198 | ); 199 | name = "Supporting Files"; 200 | sourceTree = ""; 201 | }; 202 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 203 | isa = PBXGroup; 204 | children = ( 205 | 69BE4212DED7A2D2C04F1470 /* LHNavigationController.podspec */, 206 | C0522229E129E1FF92D4CF3A /* README.md */, 207 | FF23656087CEC6BC8CDEC0B4 /* LICENSE */, 208 | ); 209 | name = "Podspec Metadata"; 210 | sourceTree = ""; 211 | }; 212 | /* End PBXGroup section */ 213 | 214 | /* Begin PBXNativeTarget section */ 215 | 6003F589195388D20070C39A /* LHNavigationController_Example */ = { 216 | isa = PBXNativeTarget; 217 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "LHNavigationController_Example" */; 218 | buildPhases = ( 219 | 3F6C2D1C9B39E3C7FDEFE135 /* 📦 Check Pods Manifest.lock */, 220 | 6003F586195388D20070C39A /* Sources */, 221 | 6003F587195388D20070C39A /* Frameworks */, 222 | 6003F588195388D20070C39A /* Resources */, 223 | A0180FF21C6492B93982759E /* 📦 Embed Pods Frameworks */, 224 | 9E030CFA9EFA00C29E4666B3 /* 📦 Copy Pods Resources */, 225 | ); 226 | buildRules = ( 227 | ); 228 | dependencies = ( 229 | ); 230 | name = LHNavigationController_Example; 231 | productName = LHNavigationController; 232 | productReference = 6003F58A195388D20070C39A /* LHNavigationController_Example.app */; 233 | productType = "com.apple.product-type.application"; 234 | }; 235 | 6003F5AD195388D20070C39A /* LHNavigationController_Tests */ = { 236 | isa = PBXNativeTarget; 237 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "LHNavigationController_Tests" */; 238 | buildPhases = ( 239 | 4ABFE1437CD2CAAB459E6B1D /* 📦 Check Pods Manifest.lock */, 240 | 6003F5AA195388D20070C39A /* Sources */, 241 | 6003F5AB195388D20070C39A /* Frameworks */, 242 | 6003F5AC195388D20070C39A /* Resources */, 243 | F680F6719FEB41A0BF95D605 /* 📦 Embed Pods Frameworks */, 244 | 4762D465125C994D04DB9D8A /* 📦 Copy Pods Resources */, 245 | ); 246 | buildRules = ( 247 | ); 248 | dependencies = ( 249 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 250 | ); 251 | name = LHNavigationController_Tests; 252 | productName = LHNavigationControllerTests; 253 | productReference = 6003F5AE195388D20070C39A /* LHNavigationController_Tests.xctest */; 254 | productType = "com.apple.product-type.bundle.unit-test"; 255 | }; 256 | /* End PBXNativeTarget section */ 257 | 258 | /* Begin PBXProject section */ 259 | 6003F582195388D10070C39A /* Project object */ = { 260 | isa = PBXProject; 261 | attributes = { 262 | CLASSPREFIX = LH; 263 | LastUpgradeCheck = 0720; 264 | ORGANIZATIONNAME = Leo; 265 | TargetAttributes = { 266 | 6003F5AD195388D20070C39A = { 267 | TestTargetID = 6003F589195388D20070C39A; 268 | }; 269 | }; 270 | }; 271 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "LHNavigationController" */; 272 | compatibilityVersion = "Xcode 3.2"; 273 | developmentRegion = English; 274 | hasScannedForEncodings = 0; 275 | knownRegions = ( 276 | en, 277 | Base, 278 | ); 279 | mainGroup = 6003F581195388D10070C39A; 280 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 281 | projectDirPath = ""; 282 | projectRoot = ""; 283 | targets = ( 284 | 6003F589195388D20070C39A /* LHNavigationController_Example */, 285 | 6003F5AD195388D20070C39A /* LHNavigationController_Tests */, 286 | ); 287 | }; 288 | /* End PBXProject section */ 289 | 290 | /* Begin PBXResourcesBuildPhase section */ 291 | 6003F588195388D20070C39A /* Resources */ = { 292 | isa = PBXResourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 52C5E12E1D1FE68D00B7FCB1 /* backIcon@2x.png in Resources */, 296 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 297 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 298 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 299 | 526003D51D18EA9C00B15B62 /* s.jpg in Resources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | 6003F5AC195388D20070C39A /* Resources */ = { 304 | isa = PBXResourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | }; 311 | /* End PBXResourcesBuildPhase section */ 312 | 313 | /* Begin PBXShellScriptBuildPhase section */ 314 | 3F6C2D1C9B39E3C7FDEFE135 /* 📦 Check Pods Manifest.lock */ = { 315 | isa = PBXShellScriptBuildPhase; 316 | buildActionMask = 2147483647; 317 | files = ( 318 | ); 319 | inputPaths = ( 320 | ); 321 | name = "📦 Check Pods Manifest.lock"; 322 | outputPaths = ( 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 327 | showEnvVarsInLog = 0; 328 | }; 329 | 4762D465125C994D04DB9D8A /* 📦 Copy Pods Resources */ = { 330 | isa = PBXShellScriptBuildPhase; 331 | buildActionMask = 2147483647; 332 | files = ( 333 | ); 334 | inputPaths = ( 335 | ); 336 | name = "📦 Copy Pods Resources"; 337 | outputPaths = ( 338 | ); 339 | runOnlyForDeploymentPostprocessing = 0; 340 | shellPath = /bin/sh; 341 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-resources.sh\"\n"; 342 | showEnvVarsInLog = 0; 343 | }; 344 | 4ABFE1437CD2CAAB459E6B1D /* 📦 Check Pods Manifest.lock */ = { 345 | isa = PBXShellScriptBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | ); 349 | inputPaths = ( 350 | ); 351 | name = "📦 Check Pods Manifest.lock"; 352 | outputPaths = ( 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | shellPath = /bin/sh; 356 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 357 | showEnvVarsInLog = 0; 358 | }; 359 | 9E030CFA9EFA00C29E4666B3 /* 📦 Copy Pods Resources */ = { 360 | isa = PBXShellScriptBuildPhase; 361 | buildActionMask = 2147483647; 362 | files = ( 363 | ); 364 | inputPaths = ( 365 | ); 366 | name = "📦 Copy Pods Resources"; 367 | outputPaths = ( 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | shellPath = /bin/sh; 371 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-resources.sh\"\n"; 372 | showEnvVarsInLog = 0; 373 | }; 374 | A0180FF21C6492B93982759E /* 📦 Embed Pods Frameworks */ = { 375 | isa = PBXShellScriptBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | ); 379 | inputPaths = ( 380 | ); 381 | name = "📦 Embed Pods Frameworks"; 382 | outputPaths = ( 383 | ); 384 | runOnlyForDeploymentPostprocessing = 0; 385 | shellPath = /bin/sh; 386 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-frameworks.sh\"\n"; 387 | showEnvVarsInLog = 0; 388 | }; 389 | F680F6719FEB41A0BF95D605 /* 📦 Embed Pods Frameworks */ = { 390 | isa = PBXShellScriptBuildPhase; 391 | buildActionMask = 2147483647; 392 | files = ( 393 | ); 394 | inputPaths = ( 395 | ); 396 | name = "📦 Embed Pods Frameworks"; 397 | outputPaths = ( 398 | ); 399 | runOnlyForDeploymentPostprocessing = 0; 400 | shellPath = /bin/sh; 401 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-frameworks.sh\"\n"; 402 | showEnvVarsInLog = 0; 403 | }; 404 | /* End PBXShellScriptBuildPhase section */ 405 | 406 | /* Begin PBXSourcesBuildPhase section */ 407 | 6003F586195388D20070C39A /* Sources */ = { 408 | isa = PBXSourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 525A82581D22456F0021E4BB /* ThridViewController.m in Sources */, 412 | 52C5E1241D1FDB5200B7FCB1 /* SecondViewController.m in Sources */, 413 | 6003F59E195388D20070C39A /* LHAppDelegate.m in Sources */, 414 | 52C5E11D1D1FD0B400B7FCB1 /* FirstViewController.m in Sources */, 415 | 6003F59A195388D20070C39A /* main.m in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | 6003F5AA195388D20070C39A /* Sources */ = { 420 | isa = PBXSourcesBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | }; 427 | /* End PBXSourcesBuildPhase section */ 428 | 429 | /* Begin PBXTargetDependency section */ 430 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 431 | isa = PBXTargetDependency; 432 | target = 6003F589195388D20070C39A /* LHNavigationController_Example */; 433 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 434 | }; 435 | /* End PBXTargetDependency section */ 436 | 437 | /* Begin PBXVariantGroup section */ 438 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 439 | isa = PBXVariantGroup; 440 | children = ( 441 | 6003F597195388D20070C39A /* en */, 442 | ); 443 | name = InfoPlist.strings; 444 | sourceTree = ""; 445 | }; 446 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 447 | isa = PBXVariantGroup; 448 | children = ( 449 | 6003F5B9195388D20070C39A /* en */, 450 | ); 451 | name = InfoPlist.strings; 452 | sourceTree = ""; 453 | }; 454 | /* End PBXVariantGroup section */ 455 | 456 | /* Begin XCBuildConfiguration section */ 457 | 6003F5BD195388D20070C39A /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 462 | CLANG_CXX_LIBRARY = "libc++"; 463 | CLANG_ENABLE_MODULES = YES; 464 | CLANG_ENABLE_OBJC_ARC = YES; 465 | CLANG_WARN_BOOL_CONVERSION = YES; 466 | CLANG_WARN_CONSTANT_CONVERSION = YES; 467 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 468 | CLANG_WARN_EMPTY_BODY = YES; 469 | CLANG_WARN_ENUM_CONVERSION = YES; 470 | CLANG_WARN_INT_CONVERSION = YES; 471 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 472 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 473 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 474 | COPY_PHASE_STRIP = NO; 475 | ENABLE_TESTABILITY = YES; 476 | GCC_C_LANGUAGE_STANDARD = gnu99; 477 | GCC_DYNAMIC_NO_PIC = NO; 478 | GCC_OPTIMIZATION_LEVEL = 0; 479 | GCC_PREPROCESSOR_DEFINITIONS = ( 480 | "DEBUG=1", 481 | "$(inherited)", 482 | ); 483 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 486 | GCC_WARN_UNDECLARED_SELECTOR = YES; 487 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 488 | GCC_WARN_UNUSED_FUNCTION = YES; 489 | GCC_WARN_UNUSED_VARIABLE = YES; 490 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 491 | ONLY_ACTIVE_ARCH = YES; 492 | SDKROOT = iphoneos; 493 | TARGETED_DEVICE_FAMILY = "1,2"; 494 | }; 495 | name = Debug; 496 | }; 497 | 6003F5BE195388D20070C39A /* Release */ = { 498 | isa = XCBuildConfiguration; 499 | buildSettings = { 500 | ALWAYS_SEARCH_USER_PATHS = NO; 501 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 502 | CLANG_CXX_LIBRARY = "libc++"; 503 | CLANG_ENABLE_MODULES = YES; 504 | CLANG_ENABLE_OBJC_ARC = YES; 505 | CLANG_WARN_BOOL_CONVERSION = YES; 506 | CLANG_WARN_CONSTANT_CONVERSION = YES; 507 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 508 | CLANG_WARN_EMPTY_BODY = YES; 509 | CLANG_WARN_ENUM_CONVERSION = YES; 510 | CLANG_WARN_INT_CONVERSION = YES; 511 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 512 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 513 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 514 | COPY_PHASE_STRIP = YES; 515 | ENABLE_NS_ASSERTIONS = NO; 516 | GCC_C_LANGUAGE_STANDARD = gnu99; 517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 518 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 520 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 521 | GCC_WARN_UNUSED_FUNCTION = YES; 522 | GCC_WARN_UNUSED_VARIABLE = YES; 523 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 524 | SDKROOT = iphoneos; 525 | TARGETED_DEVICE_FAMILY = "1,2"; 526 | VALIDATE_PRODUCT = YES; 527 | }; 528 | name = Release; 529 | }; 530 | 6003F5C0195388D20070C39A /* Debug */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = CA80CA8E50AF83C429AC28C1 /* Pods-LHNavigationController_Example.debug.xcconfig */; 533 | buildSettings = { 534 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 535 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 536 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 537 | GCC_PREFIX_HEADER = "LHNavigationController/LHNavigationController-Prefix.pch"; 538 | INFOPLIST_FILE = "LHNavigationController/LHNavigationController-Info.plist"; 539 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 540 | MODULE_NAME = ExampleApp; 541 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | WRAPPER_EXTENSION = app; 544 | }; 545 | name = Debug; 546 | }; 547 | 6003F5C1195388D20070C39A /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = A79300834DDBA7FB3F756412 /* Pods-LHNavigationController_Example.release.xcconfig */; 550 | buildSettings = { 551 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 552 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 553 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 554 | GCC_PREFIX_HEADER = "LHNavigationController/LHNavigationController-Prefix.pch"; 555 | INFOPLIST_FILE = "LHNavigationController/LHNavigationController-Info.plist"; 556 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 557 | MODULE_NAME = ExampleApp; 558 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 559 | PRODUCT_NAME = "$(TARGET_NAME)"; 560 | WRAPPER_EXTENSION = app; 561 | }; 562 | name = Release; 563 | }; 564 | 6003F5C3195388D20070C39A /* Debug */ = { 565 | isa = XCBuildConfiguration; 566 | baseConfigurationReference = 193858EBD53E936AB1E3512A /* Pods-LHNavigationController_Tests.debug.xcconfig */; 567 | buildSettings = { 568 | BUNDLE_LOADER = "$(TEST_HOST)"; 569 | FRAMEWORK_SEARCH_PATHS = ( 570 | "$(SDKROOT)/Developer/Library/Frameworks", 571 | "$(inherited)", 572 | "$(DEVELOPER_FRAMEWORKS_DIR)", 573 | ); 574 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 575 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 576 | GCC_PREPROCESSOR_DEFINITIONS = ( 577 | "DEBUG=1", 578 | "$(inherited)", 579 | ); 580 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 581 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 582 | PRODUCT_NAME = "$(TARGET_NAME)"; 583 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LHNavigationController_Example.app/LHNavigationController_Example"; 584 | WRAPPER_EXTENSION = xctest; 585 | }; 586 | name = Debug; 587 | }; 588 | 6003F5C4195388D20070C39A /* Release */ = { 589 | isa = XCBuildConfiguration; 590 | baseConfigurationReference = 523D8423E50DF7025D8F86F5 /* Pods-LHNavigationController_Tests.release.xcconfig */; 591 | buildSettings = { 592 | BUNDLE_LOADER = "$(TEST_HOST)"; 593 | FRAMEWORK_SEARCH_PATHS = ( 594 | "$(SDKROOT)/Developer/Library/Frameworks", 595 | "$(inherited)", 596 | "$(DEVELOPER_FRAMEWORKS_DIR)", 597 | ); 598 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 599 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 600 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 601 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 602 | PRODUCT_NAME = "$(TARGET_NAME)"; 603 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LHNavigationController_Example.app/LHNavigationController_Example"; 604 | WRAPPER_EXTENSION = xctest; 605 | }; 606 | name = Release; 607 | }; 608 | /* End XCBuildConfiguration section */ 609 | 610 | /* Begin XCConfigurationList section */ 611 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "LHNavigationController" */ = { 612 | isa = XCConfigurationList; 613 | buildConfigurations = ( 614 | 6003F5BD195388D20070C39A /* Debug */, 615 | 6003F5BE195388D20070C39A /* Release */, 616 | ); 617 | defaultConfigurationIsVisible = 0; 618 | defaultConfigurationName = Release; 619 | }; 620 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "LHNavigationController_Example" */ = { 621 | isa = XCConfigurationList; 622 | buildConfigurations = ( 623 | 6003F5C0195388D20070C39A /* Debug */, 624 | 6003F5C1195388D20070C39A /* Release */, 625 | ); 626 | defaultConfigurationIsVisible = 0; 627 | defaultConfigurationName = Release; 628 | }; 629 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "LHNavigationController_Tests" */ = { 630 | isa = XCConfigurationList; 631 | buildConfigurations = ( 632 | 6003F5C3195388D20070C39A /* Debug */, 633 | 6003F5C4195388D20070C39A /* Release */, 634 | ); 635 | defaultConfigurationIsVisible = 0; 636 | defaultConfigurationName = Release; 637 | }; 638 | /* End XCConfigurationList section */ 639 | }; 640 | rootObject = 6003F582195388D10070C39A /* Project object */; 641 | } 642 | -------------------------------------------------------------------------------- /Example/LHNavigationController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/LHNavigationController.xcodeproj/xcshareddata/xcschemes/LHNavigationController-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/LHNavigationController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/LHNavigationController/FirstViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FirstViewController.h 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHViewController.h" 10 | 11 | @interface FirstViewController : LHViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/LHNavigationController/FirstViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FirstViewController.m 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "FirstViewController.h" 10 | #import "LHNavigation.h" 11 | #import "SecondViewController.h" 12 | 13 | @interface FirstViewController () 14 | @end 15 | @implementation FirstViewController 16 | 17 | -(void)viewDidLoad{ 18 | [super viewDidLoad]; 19 | // self.lh_navigationController.lh_transtionStyle = LHNavigationTransitionStyle3D; 20 | self.lh_navigationItem.title = @"Pan left"; 21 | self.lh_navigationController.lhDelegate = self; 22 | self.lh_barTintColor = [UIColor orangeColor]; 23 | self.lh_barItemsTintColor = [UIColor whiteColor]; 24 | self.lh_barTitlesTintColor = [UIColor whiteColor]; 25 | UIBarButtonItem * rightItem = [[UIBarButtonItem alloc] initWithTitle:@"Next" style:UIBarButtonItemStylePlain target:self action:@selector(toNext)]; 26 | self.lh_navigationItem.rightBarButtonItem = rightItem; 27 | } 28 | - (void)toNext{ 29 | SecondViewController * dvc = [[SecondViewController alloc] init]; 30 | [self.navigationController pushViewController:dvc animated:YES]; 31 | } 32 | -(UIViewController *)viewControllerAfterController:(UIViewController *)controller{ 33 | if (controller == self) { 34 | SecondViewController * dvc = [[SecondViewController alloc] init]; 35 | return dvc; 36 | } 37 | return nil; 38 | } 39 | - (UIStatusBarStyle)preferredStatusBarStyle{ 40 | return UIStatusBarStyleLightContent; 41 | } 42 | @end 43 | -------------------------------------------------------------------------------- /Example/LHNavigationController/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /Example/LHNavigationController/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "extent" : "full-screen", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "filename" : "launchScreen.png", 15 | "minimum-system-version" : "7.0", 16 | "orientation" : "portrait", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "orientation" : "portrait", 21 | "idiom" : "ipad", 22 | "extent" : "full-screen", 23 | "minimum-system-version" : "7.0", 24 | "scale" : "1x" 25 | }, 26 | { 27 | "orientation" : "landscape", 28 | "idiom" : "ipad", 29 | "extent" : "full-screen", 30 | "minimum-system-version" : "7.0", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "orientation" : "portrait", 35 | "idiom" : "ipad", 36 | "extent" : "full-screen", 37 | "minimum-system-version" : "7.0", 38 | "scale" : "2x" 39 | }, 40 | { 41 | "orientation" : "landscape", 42 | "idiom" : "ipad", 43 | "extent" : "full-screen", 44 | "minimum-system-version" : "7.0", 45 | "scale" : "2x" 46 | } 47 | ], 48 | "info" : { 49 | "version" : 1, 50 | "author" : "xcode" 51 | } 52 | } -------------------------------------------------------------------------------- /Example/LHNavigationController/Images.xcassets/LaunchImage.launchimage/launchScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/Example/LHNavigationController/Images.xcassets/LaunchImage.launchimage/launchScreen.png -------------------------------------------------------------------------------- /Example/LHNavigationController/LHAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHAppDelegate.h 3 | // LHNavigationController 4 | // 5 | // Created by Leo on 06/21/2016. 6 | // Copyright (c) 2016 Leo. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface LHAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/LHNavigationController/LHAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHAppDelegate.m 3 | // LHNavigationController 4 | // 5 | // Created by Leo on 06/21/2016. 6 | // Copyright (c) 2016 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHAppDelegate.h" 10 | 11 | @implementation LHAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // 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. 22 | // 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. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // 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. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // 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. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/LHNavigationController/LHNavigationController-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/LHNavigationController/LHNavigationController-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/LHNavigationController/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /Example/LHNavigationController/SecondViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.h 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHTableViewController.h" 10 | 11 | @interface SecondViewController : LHTableViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/LHNavigationController/SecondViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SecondViewController.m 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "SecondViewController.h" 10 | #import "ThridViewController.h" 11 | #import 12 | 13 | @implementation SecondViewController 14 | 15 | - (void)viewDidLoad{ 16 | [super viewDidLoad]; 17 | self.lh_navigationItem.title = @"Pan right"; 18 | self.lh_barTintColor = [UIColor orangeColor]; 19 | self.lh_barTitlesTintColor = [UIColor whiteColor]; 20 | self.lh_barItemsTintColor = [UIColor whiteColor]; 21 | UIBarButtonItem * leftItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backIcon"] 22 | style:UIBarButtonItemStylePlain 23 | target:self 24 | action:@selector(back)];; 25 | self.lh_navigationItem.leftBarButtonItem = leftItem; 26 | } 27 | - (void)back{ 28 | [self.navigationController popViewControllerAnimated:YES]; 29 | } 30 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ 31 | return 20.0; 32 | } 33 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ 34 | NSString *reuseID = @"cell"; 35 | UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:reuseID]; 36 | if (cell == nil) { 37 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseID]; 38 | } 39 | cell.textLabel.text = [NSString stringWithFormat:@"index:%ld",(long)indexPath.row]; 40 | return cell; 41 | } 42 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 43 | ThridViewController * tvc = [[ThridViewController alloc] init]; 44 | [self.navigationController pushViewController:tvc animated:YES]; 45 | } 46 | - (UIStatusBarStyle)preferredStatusBarStyle{ 47 | return UIStatusBarStyleLightContent; 48 | } 49 | @end 50 | -------------------------------------------------------------------------------- /Example/LHNavigationController/ThridViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ThridViewController.h 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/28. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHCollectionViewController.h" 10 | 11 | @interface ThridViewController : LHCollectionViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/LHNavigationController/ThridViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ThridViewController.m 3 | // LHNavigationController 4 | // 5 | // Created by huangwenchen on 16/6/28. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "ThridViewController.h" 10 | #import 11 | @implementation ThridViewController 12 | - (void)viewDidLoad{ 13 | [super viewDidLoad]; 14 | UICollectionViewFlowLayout * flowLayout = (UICollectionViewFlowLayout *)self.collectionView.collectionViewLayout; 15 | flowLayout.itemSize = CGSizeMake(50, 50); 16 | [self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cell"]; 17 | self.collectionView.backgroundColor = [UIColor whiteColor]; 18 | self.lh_barTintColor = [UIColor orangeColor]; 19 | self.lh_barItemsTintColor = [UIColor whiteColor]; 20 | self.lh_barTitlesTintColor = [UIColor whiteColor]; 21 | self.lh_navigationItem.title = @"ColelctionView"; 22 | UIBarButtonItem * leftItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backIcon"] 23 | style:UIBarButtonItemStylePlain 24 | target:self 25 | action:@selector(back)];; 26 | self.lh_navigationItem.leftBarButtonItem = leftItem; 27 | } 28 | - (void)back{ 29 | [self.navigationController popViewControllerAnimated:YES]; 30 | } 31 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ 32 | UICollectionViewCell * cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"cell" forIndexPath:indexPath]; 33 | cell.backgroundColor = [UIColor blueColor]; 34 | return cell; 35 | } 36 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ 37 | return 100; 38 | } 39 | - (UIStatusBarStyle)preferredStatusBarStyle{ 40 | return UIStatusBarStyleLightContent; 41 | } 42 | @end 43 | -------------------------------------------------------------------------------- /Example/LHNavigationController/backIcon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/Example/LHNavigationController/backIcon@2x.png -------------------------------------------------------------------------------- /Example/LHNavigationController/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/LHNavigationController/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // LHNavigationController 4 | // 5 | // Created by Leo on 06/21/2016. 6 | // Copyright (c) 2016 Leo. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "LHAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([LHAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/LHNavigationController/s.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/Example/LHNavigationController/s.jpg -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'LHNavigationController_Example' do 4 | pod 'LHNavigationController', :path => '../' 5 | 6 | target 'LHNavigationController_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LHNavigationController (0.1.1) 3 | 4 | DEPENDENCIES: 5 | - LHNavigationController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LHNavigationController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LHNavigationController: e7b793171fe3fc6cfb1fa90dfbb4d3fc02ad6733 13 | 14 | PODFILE CHECKSUM: a239578255245ca301c5a0b1c7767dc47d2be9ef 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/LHNavigationController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "LHNavigationController", 3 | "version": "0.1.1", 4 | "summary": "A UINavigationController subclass that allow you push/pop with full screen pan", 5 | "description": "A UINavigationController subclass that allow you push/pop with full screen pan(类似网易新闻,支持全屏push/pop)", 6 | "homepage": "https://github.com/LeoMobileDeveloper/LHNavigationController", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Leo": "leomobiledeveloper" 13 | }, 14 | "source": { 15 | "git": "https://github.com/LeoMobileDeveloper/LHNavigationController.git", 16 | "tag": "0.1.1" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "LHNavigationController/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LHNavigationController (0.1.1) 3 | 4 | DEPENDENCIES: 5 | - LHNavigationController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LHNavigationController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LHNavigationController: e7b793171fe3fc6cfb1fa90dfbb4d3fc02ad6733 13 | 14 | PODFILE CHECKSUM: a239578255245ca301c5a0b1c7767dc47d2be9ef 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/LHNavigationController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_LHNavigationController : NSObject 3 | @end 4 | @implementation PodsDummy_LHNavigationController 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/LHNavigationController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/LHNavigationController-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "LH3DAnimator.h" 4 | #import "LHBaseAnimator.h" 5 | #import "LHCollectionViewController.h" 6 | #import "LHDefaultAnimator.h" 7 | #import "LHNavigation.h" 8 | #import "LHNavigationController.h" 9 | #import "LHTableViewController.h" 10 | #import "LHViewController.h" 11 | #import "UIViewController+LHNavigation.h" 12 | 13 | FOUNDATION_EXPORT double LHNavigationControllerVersionNumber; 14 | FOUNDATION_EXPORT const unsigned char LHNavigationControllerVersionString[]; 15 | 16 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/LHNavigationController.modulemap: -------------------------------------------------------------------------------- 1 | framework module LHNavigationController { 2 | umbrella header "LHNavigationController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LHNavigationController/LHNavigationController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/LHNavigationController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## LHNavigationController 5 | 6 | Copyright (c) 2016 Leo 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Leo <leomobiledeveloper> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | LHNavigationController 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - https://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LHNavigationController_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LHNavigationController_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/LHNavigationController/LHNavigationController.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/LHNavigationController/LHNavigationController.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_LHNavigationController_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_LHNavigationController_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "LHNavigationController" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LHNavigationController_Example { 2 | umbrella header "Pods-LHNavigationController_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Example/Pods-LHNavigationController_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "LHNavigationController" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LHNavigationController_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LHNavigationController_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_LHNavigationController_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_LHNavigationController_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LHNavigationController_Tests { 2 | umbrella header "Pods-LHNavigationController_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LHNavigationController_Tests/Pods-LHNavigationController_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavigationControllerTests.m 3 | // LHNavigationControllerTests 4 | // 5 | // Created by Leo on 06/21/2016. 6 | // Copyright (c) 2016 Leo. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | NSAssert(YES,@"success"); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LHNavigationController.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint LHNavigationController.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'LHNavigationController' 11 | s.version = '0.1.2' 12 | s.summary = 'A UINavigationController subclass that allow you push/pop with full screen pan' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'A UINavigationController subclass that allow you push/pop with full screen pan(类似网易新闻,支持全屏push/pop)' 21 | 22 | 23 | s.homepage = 'https://github.com/LeoMobileDeveloper/LHNavigationController' 24 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { 'Leo' => 'leomobiledeveloper' } 27 | s.source = { :git => 'https://github.com/LeoMobileDeveloper/LHNavigationController.git', :tag => s.version.to_s } 28 | # s.social_media_url = 'https://twitter.com/' 29 | 30 | s.ios.deployment_target = '8.0' 31 | 32 | s.source_files = 'LHNavigationController/Classes/**/*' 33 | 34 | # s.resource_bundles = { 35 | # 'LHNavigationController' => ['LHNavigationController/Assets/*.png'] 36 | # } 37 | 38 | # s.public_header_files = 'Pod/Classes/**/*.h' 39 | # s.frameworks = 'UIKit', 'MapKit' 40 | # s.dependency 'AFNetworking', '~> 2.3' 41 | end 42 | -------------------------------------------------------------------------------- /LHNavigationController/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/LHNavigationController/Assets/.gitkeep -------------------------------------------------------------------------------- /LHNavigationController/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/LHNavigationController/Classes/.gitkeep -------------------------------------------------------------------------------- /LHNavigationController/Classes/LH3DAnimator.h: -------------------------------------------------------------------------------- 1 | // 2 | // LH3DAnimator.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/27. 6 | // 7 | // 8 | 9 | #import "LHBaseAnimator.h" 10 | 11 | @interface LH3DAnimator : LHBaseAnimator 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LH3DAnimator.m: -------------------------------------------------------------------------------- 1 | // 2 | // LH3DAnimator.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/27. 6 | // 7 | // 8 | 9 | #import "LH3DAnimator.h" 10 | #import "UIViewController+LHNavigation.h" 11 | 12 | @implementation LH3DAnimator 13 | 14 | - (NSTimeInterval)transitionDuration:(id)transitionContext{ 15 | return 0.25; 16 | } 17 | - (void)animateTransition:(id)transitionContext{ 18 | //Get views and vcs 19 | UIViewController * fromvc = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 20 | UIViewController * tovc = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 21 | UIView * fromView = fromvc.view; 22 | UIView * toView = tovc.view; 23 | UIView * containView = [transitionContext containerView]; 24 | CGFloat duration = [self transitionDuration:transitionContext]; 25 | 26 | CGFloat toTransition = CGRectGetWidth(containView.bounds); 27 | //Add subview 28 | [containView addSubview:toView]; 29 | UIView * overLayView = [[UIView alloc] initWithFrame:containView.bounds]; 30 | overLayView.backgroundColor = [UIColor blackColor]; 31 | BOOL navHidden = self.nav.navigationBar.isHidden; 32 | UIColor * fromColor = fromvc.lh_barTintColor; 33 | UIColor * toColor = tovc.lh_barTintColor; 34 | 35 | if (self.operation == LHNavAnimatorOperationPush) { 36 | self.nav.view.userInteractionEnabled = NO; 37 | toView.transform = CGAffineTransformMakeTranslation(toTransition, 0); 38 | fromView.transform = CGAffineTransformIdentity; 39 | [fromView addSubview:overLayView]; 40 | overLayView.alpha = 0.0; 41 | [containView bringSubviewToFront:toView]; 42 | self.nav.navigationBar.barTintColor = fromColor; 43 | 44 | [UIView animateWithDuration:duration 45 | delay:0.0 46 | options:UIViewAnimationOptionCurveLinear 47 | animations:^{ 48 | toView.transform = CGAffineTransformIdentity; 49 | fromView.transform = CGAffineTransformMakeScale(0.95, 0.95); 50 | overLayView.alpha = 0.5; 51 | if (!navHidden && toColor != nil) { 52 | self.nav.navigationBar.barTintColor = toColor; 53 | } 54 | } completion:^(BOOL finished) { 55 | self.nav.view.userInteractionEnabled = YES; 56 | fromView.transform = CGAffineTransformIdentity; 57 | toView.transform = CGAffineTransformIdentity; 58 | [overLayView removeFromSuperview]; 59 | BOOL canceled = [transitionContext transitionWasCancelled]; 60 | [transitionContext completeTransition:!canceled]; 61 | }]; 62 | }else{ 63 | [containView bringSubviewToFront:fromView]; 64 | toView.transform = CGAffineTransformMakeScale(0.95, 0.95); 65 | fromView.transform = CGAffineTransformIdentity; 66 | self.nav.view.userInteractionEnabled = NO; 67 | [toView addSubview:overLayView]; 68 | overLayView.alpha = 0.5; 69 | self.nav.navigationBar.barTintColor = fromColor; 70 | [UIView animateWithDuration:duration 71 | delay:0.0 72 | options:UIViewAnimationOptionCurveLinear 73 | animations:^{ 74 | if (!navHidden && toColor != nil) { 75 | self.nav.navigationBar.barTintColor = toColor; 76 | } 77 | toView.transform = CGAffineTransformIdentity; 78 | fromView.transform = CGAffineTransformMakeTranslation(toTransition, 0); 79 | overLayView.alpha = 0.0; 80 | } completion:^(BOOL finished) { 81 | self.nav.view.userInteractionEnabled = YES; 82 | fromView.transform = CGAffineTransformIdentity; 83 | toView.transform = CGAffineTransformIdentity; 84 | [overLayView removeFromSuperview]; 85 | BOOL canceled = [transitionContext transitionWasCancelled]; 86 | [transitionContext completeTransition:!canceled]; 87 | }]; 88 | } 89 | 90 | } 91 | 92 | @end 93 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHBaseAnimator.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHBaseAnimator.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/28. 6 | // 7 | // 8 | 9 | #import 10 | typedef NS_ENUM(NSInteger,LHNavAnimatorOperation){ 11 | LHNavAnimatorOperationPush, 12 | LHNavAnimatorOperationPop, 13 | }; 14 | typedef NS_ENUM(NSInteger,LHNavigationTransitionStyle){ 15 | LHNavigationTransitionStyleDefault, 16 | LHNavigationTransitionStyle3D, 17 | }; 18 | @interface LHBaseAnimator : NSObject 19 | 20 | -(instancetype)initWithDirection:(LHNavAnimatorOperation)direction navigation:(UINavigationController *)nav; 21 | 22 | @property (assign,nonatomic)LHNavAnimatorOperation operation; 23 | 24 | @property (weak,nonatomic)UINavigationController * nav; 25 | 26 | + (instancetype)animatorWithStyle:(LHNavigationTransitionStyle)style direction:(LHNavAnimatorOperation)direction navigation:(UINavigationController *)nav; 27 | @end 28 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHBaseAnimator.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHBaseAnimator.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/28. 6 | // 7 | // 8 | 9 | #import "LHBaseAnimator.h" 10 | #import "LHDefaultAnimator.h" 11 | #import "LH3DAnimator.h" 12 | 13 | @implementation LHBaseAnimator 14 | 15 | - (instancetype)initWithDirection:(LHNavAnimatorOperation)operation navigation:(UINavigationController *)nav{ 16 | if (self = [super init]) { 17 | self.operation = operation; 18 | _nav = nav; 19 | } 20 | return self; 21 | } 22 | + (instancetype)animatorWithStyle:(LHNavigationTransitionStyle)style direction:(LHNavAnimatorOperation)direction navigation:(UINavigationController *)nav{ 23 | if (style == LHNavigationTransitionStyleDefault) { 24 | return [[LHDefaultAnimator alloc] initWithDirection:direction navigation:nav]; 25 | }else{ 26 | return [[LH3DAnimator alloc] initWithDirection:direction navigation:nav]; 27 | } 28 | } 29 | - (NSTimeInterval)transitionDuration:(id)transitionContext{ 30 | [NSException raise:@"LHAnimatorException" format:@"Sub class must override this method at %s %d",__FILE__,__LINE__]; 31 | return 0.0; 32 | } 33 | - (void)animateTransition:(id)transitionContext{ 34 | [NSException raise:@"LHAnimatorException" format:@"Sub class must override this method at %s %d",__FILE__,__LINE__]; 35 | } 36 | @end 37 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHCollectionViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHCollectionViewController.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/27. 6 | // 7 | // 8 | 9 | #import "LHViewController.h" 10 | 11 | @interface LHCollectionViewController : LHViewController 12 | 13 | - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout; 14 | 15 | @property(nonatomic, strong) UICollectionView * collectionView; 16 | 17 | @property(nonatomic, readonly) UICollectionViewLayout *collectionViewLayout; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHCollectionViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHCollectionViewController.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/27. 6 | // 7 | // 8 | 9 | #import "LHCollectionViewController.h" 10 | 11 | @implementation LHCollectionViewController 12 | 13 | - (UICollectionView *)collectionView{ 14 | if (_collectionView == nil) { 15 | _collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:_collectionViewLayout]; 16 | } 17 | return _collectionView; 18 | } 19 | - (instancetype)init{ 20 | UICollectionViewFlowLayout * flowLayout = [[UICollectionViewFlowLayout alloc] init]; 21 | return [self initWithCollectionViewLayout:flowLayout]; 22 | } 23 | - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout{ 24 | if (self = [super init]) { 25 | _collectionViewLayout = layout; 26 | } 27 | return self; 28 | } 29 | 30 | - (void)viewDidLoad{ 31 | [super viewDidLoad]; 32 | self.automaticallyAdjustsScrollViewInsets = NO; 33 | self.collectionView.delegate = self; 34 | self.collectionView.dataSource = self; 35 | self.collectionView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 36 | [self.lh_view addSubview:self.collectionView]; 37 | } 38 | - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{ 39 | [NSException raise:@"LHCollectionViewController exception" format:@"Subclass should override this method at %s %d",__FILE__,__LINE__]; 40 | return 0; 41 | } 42 | 43 | - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{ 44 | [NSException raise:@"LHCollectionViewController exception" format:@"Subclass should override this method at %s %d",__FILE__,__LINE__]; 45 | return nil; 46 | } 47 | @end 48 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHDefaultAnimator.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavAnimator.h 3 | // LHNavigation 4 | // 5 | // Created by huangwenchen on 16/6/20. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHBaseAnimator.h" 10 | 11 | @interface LHDefaultAnimator : LHBaseAnimator 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHDefaultAnimator.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavAnimator.m 3 | // LHNavigation 4 | // 5 | // Created by huangwenchen on 16/6/20. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHDefaultAnimator.h" 10 | #import "UIViewController+LHNavigation.h" 11 | 12 | @implementation LHDefaultAnimator 13 | - (NSTimeInterval)transitionDuration:(id)transitionContext{ 14 | return 0.25; 15 | } 16 | - (void)animateTransition:(id)transitionContext{ 17 | //Get views and vcs 18 | UIViewController * fromvc = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; 19 | UIViewController * tovc = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; 20 | UIView * fromView = fromvc.view; 21 | UIView * toView = tovc.view; 22 | UIView * containView = [transitionContext containerView]; 23 | CGFloat duration = [self transitionDuration:transitionContext]; 24 | 25 | CGFloat toTransition = CGRectGetWidth(containView.bounds); 26 | CGFloat fromTranstion = toTransition * 0.3; 27 | //Add subview 28 | [containView addSubview:toView]; 29 | BOOL navHidden = self.nav.navigationBar.isHidden; 30 | UIColor * fromColor = fromvc.lh_barTintColor; 31 | UIColor * toColor = tovc.lh_barTintColor; 32 | if (self.operation == LHNavAnimatorOperationPush) { 33 | self.nav.view.userInteractionEnabled = NO; 34 | toView.transform = CGAffineTransformMakeTranslation(toTransition, 0); 35 | fromView.transform = CGAffineTransformIdentity; 36 | [containView bringSubviewToFront:toView]; 37 | self.nav.navigationBar.barTintColor = fromColor; 38 | [UIView animateWithDuration:duration 39 | delay:0.0 40 | options:UIViewAnimationOptionCurveLinear 41 | animations:^{ 42 | toView.transform = CGAffineTransformIdentity; 43 | fromView.transform = CGAffineTransformMakeTranslation(-1 * fromTranstion, 0); 44 | if (!navHidden && toColor != nil) { 45 | self.nav.navigationBar.barTintColor = toColor; 46 | } 47 | } completion:^(BOOL finished) { 48 | self.nav.view.userInteractionEnabled = YES; 49 | fromView.transform = CGAffineTransformIdentity; 50 | toView.transform = CGAffineTransformIdentity; 51 | BOOL canceled = [transitionContext transitionWasCancelled]; 52 | [transitionContext completeTransition:!canceled]; 53 | }]; 54 | }else{ 55 | [containView bringSubviewToFront:fromView]; 56 | toView.transform = CGAffineTransformMakeTranslation(-1 * fromTranstion, 0); 57 | fromView.transform = CGAffineTransformIdentity; 58 | self.nav.view.userInteractionEnabled = NO; 59 | self.nav.navigationBar.barTintColor = fromColor; 60 | [UIView animateWithDuration:duration 61 | delay:0.0 62 | options:UIViewAnimationOptionCurveLinear 63 | animations:^{ 64 | if (!navHidden && toColor != nil) { 65 | self.nav.navigationBar.barTintColor = toColor; 66 | } 67 | toView.transform = CGAffineTransformIdentity; 68 | fromView.transform = CGAffineTransformMakeTranslation(toTransition, 0); 69 | } completion:^(BOOL finished) { 70 | self.nav.view.userInteractionEnabled = YES; 71 | fromView.transform = CGAffineTransformIdentity; 72 | toView.transform = CGAffineTransformIdentity; 73 | BOOL canceled = [transitionContext transitionWasCancelled]; 74 | [transitionContext completeTransition:!canceled]; 75 | }]; 76 | } 77 | } 78 | @end 79 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHNavigation.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavigation.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/7/1. 6 | // 7 | // 8 | 9 | #import 10 | #import "UIViewController+LHNavigation.h" 11 | #import "LHNavigationController.h" 12 | #import "LHCollectionViewController.h" 13 | #import "LHTableViewController.h" 14 | #import "LHViewController.h" 15 | 16 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHNavigationController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavigationController.h 3 | // LHNavigation 4 | // 5 | // Created by huangwenchen on 16/6/20. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "LHBaseAnimator.h" 11 | @import UIKit; 12 | @protocol LHNavigationControllerDelegate 13 | /** 14 | * The view controller that after top most controller 15 | * 16 | * @param controller top most controller 17 | * 18 | * @return The viewController that use pop gesture to push 19 | */ 20 | - (UIViewController * _Nullable)viewControllerAfterController:(UIViewController * _Nullable)controller; 21 | @end 22 | 23 | @interface LHNavigationController : UINavigationController 24 | 25 | /** 26 | * Use this delegate to "pan left to push" 27 | */ 28 | @property (weak,nonatomic,nullable) id lhDelegate; 29 | 30 | @property (assign,nonatomic) LHNavigationTransitionStyle lh_transtionStyle; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHNavigationController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHNavigationController.m 3 | // LHNavigation 4 | // 5 | // Created by huangwenchen on 16/6/20. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | #import "LHNavigationController.h" 10 | #import "LHDefaultAnimator.h" 11 | 12 | @interface LHNavigationController () 13 | 14 | @property (assign,nonatomic)BOOL isInteractive; 15 | 16 | @property (strong,nonatomic)UIPercentDrivenInteractiveTransition * transition; 17 | 18 | @property (strong,nonatomic)UIPanGestureRecognizer * pushPan; 19 | 20 | @property (strong,nonatomic)UIPanGestureRecognizer * popPan; 21 | 22 | @end 23 | @implementation LHNavigationController 24 | 25 | -(UIPercentDrivenInteractiveTransition *)transition{ 26 | if (_transition == nil) { 27 | _transition = [[UIPercentDrivenInteractiveTransition alloc] init]; 28 | } 29 | return _transition; 30 | } 31 | - (instancetype)init{ 32 | if (self = [super init]) { 33 | _transition = LHNavigationTransitionStyleDefault; 34 | } 35 | return self; 36 | } 37 | - (instancetype)initWithCoder:(NSCoder *)aDecoder{ 38 | if (self = [super initWithCoder:aDecoder]) { 39 | _transition = LHNavigationTransitionStyleDefault; 40 | } 41 | return self; 42 | } 43 | - (instancetype)initWithRootViewController:(UIViewController *)rootViewController{ 44 | if (self = [super initWithRootViewController:rootViewController]) { 45 | _transition = LHNavigationTransitionStyleDefault; 46 | } 47 | return self; 48 | } 49 | - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{ 50 | if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { 51 | _transition = LHNavigationTransitionStyleDefault; 52 | } 53 | return self; 54 | } 55 | #pragma mark - Life circle 56 | - (void)viewDidLoad{ 57 | [super viewDidLoad]; 58 | [self setNavigationBarHidden:YES]; 59 | _isInteractive = NO; 60 | self.pushPan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePush:)]; 61 | self.pushPan.delegate = self; 62 | self.pushPan.cancelsTouchesInView = NO; 63 | [self.view addGestureRecognizer:self.pushPan]; 64 | 65 | self.popPan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePop:)]; 66 | self.popPan.delegate = self; 67 | self.popPan.cancelsTouchesInView = NO; 68 | [self.view addGestureRecognizer:self.popPan]; 69 | self.delegate = self; 70 | } 71 | 72 | #pragma mark - Gesture 73 | - (void)handlePush:(UIScreenEdgePanGestureRecognizer *)sender{ 74 | CGFloat tx = [sender translationInView:self.view].x; 75 | CGFloat pec = fabs(tx/CGRectGetWidth(self.view.frame)); 76 | CGFloat vx = [sender velocityInView:self.view].x; 77 | if (sender.state == UIGestureRecognizerStateBegan) { 78 | self.isInteractive = YES; 79 | UIViewController * nextvc = [self.lhDelegate viewControllerAfterController:self.viewControllers.lastObject]; 80 | [self pushViewController:nextvc animated:YES]; 81 | }else if (sender.state == UIGestureRecognizerStateChanged) { 82 | [self.transition updateInteractiveTransition:pec]; 83 | }else if (sender.state == UIGestureRecognizerStateEnded || sender.state == UIGestureRecognizerStateCancelled) { 84 | if (vx > 0) {// 85 | [self.transition cancelInteractiveTransition]; 86 | }else{ 87 | [self.transition finishInteractiveTransition]; 88 | } 89 | self.isInteractive = NO; 90 | } 91 | } 92 | 93 | - (void)handlePop:(UIScreenEdgePanGestureRecognizer *)sender{ 94 | CGFloat tx = [sender translationInView:self.view].x; 95 | CGFloat pec = fabs(tx/CGRectGetWidth(self.view.frame)); 96 | CGFloat vx = [sender velocityInView:self.view].x; 97 | if (sender.state == UIGestureRecognizerStateBegan) { 98 | self.isInteractive = YES; 99 | [self popViewControllerAnimated:YES]; 100 | }else if (sender.state == UIGestureRecognizerStateChanged) { 101 | [self.transition updateInteractiveTransition:pec]; 102 | }else if (sender.state == UIGestureRecognizerStateEnded || sender.state == UIGestureRecognizerStateCancelled) { 103 | if (vx < 0) {// 104 | [self.transition cancelInteractiveTransition]; 105 | }else{ 106 | [self.transition finishInteractiveTransition]; 107 | } 108 | self.isInteractive = NO; 109 | } 110 | } 111 | 112 | - (BOOL)gestureRecognizerShouldBegin:(UIPanGestureRecognizer *)panGestureRecognizer { 113 | CGPoint velocity = [panGestureRecognizer velocityInView:self.view]; 114 | if (panGestureRecognizer == self.pushPan) { 115 | UIViewController * topMost = self.viewControllers.lastObject; 116 | if ([self.lhDelegate respondsToSelector:@selector(viewControllerAfterController:)]) { 117 | UIViewController * nvc = [self.lhDelegate viewControllerAfterController:topMost]; 118 | return nvc != nil && velocity.x < 0; 119 | } 120 | return NO; 121 | }else{ 122 | return velocity.x > 0 && self.viewControllers.count > 1; 123 | } 124 | } 125 | #pragma mark - Transition 126 | - (id)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation 127 | fromViewController:(UIViewController *)fromVC 128 | toViewController:(UIViewController *)toVC{ 129 | LHNavAnimatorOperation direaction; 130 | 131 | if (operation == UINavigationControllerOperationPush) { 132 | direaction = LHNavAnimatorOperationPush; 133 | } 134 | if (operation == UINavigationControllerOperationPop) { 135 | direaction = LHNavAnimatorOperationPop; 136 | } 137 | return [LHBaseAnimator animatorWithStyle:_lh_transtionStyle direction:direaction navigation:self]; 138 | } 139 | 140 | - (id)navigationController:(UINavigationController *)navigationController 141 | interactionControllerForAnimationController:(id)animationController{ 142 | return _isInteractive ? self.transition : nil; 143 | } 144 | @end 145 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHTableViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHTableViewController.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // 7 | // 8 | 9 | #import 10 | #import "LHViewController.h" 11 | /** 12 | * The base class of Tabelview controller 13 | */ 14 | @interface LHTableViewController : LHViewController 15 | 16 | @property (strong,nonatomic)UITableView * tableView; 17 | 18 | - (instancetype)initWithStyle:(UITableViewStyle)style; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHTableViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHTableViewController.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // 7 | // 8 | 9 | #import "LHTableViewController.h" 10 | 11 | @interface LHTableViewController () 12 | 13 | @property (assign,nonatomic)UITableViewStyle tableStyle; 14 | 15 | @end 16 | @implementation LHTableViewController 17 | - (instancetype)initWithStyle:(UITableViewStyle)style{ 18 | if (self = [super init]) { 19 | _tableStyle = style; 20 | } 21 | return self; 22 | } 23 | - (UITableView *)tableView{ 24 | if (_tableView == nil) { 25 | _tableView = [[UITableView alloc] initWithFrame:self.lh_view.bounds style:_tableStyle]; 26 | } 27 | return _tableView; 28 | } 29 | - (void)viewDidLoad{ 30 | [super viewDidLoad]; 31 | self.automaticallyAdjustsScrollViewInsets = NO; 32 | self.tableView.delegate = self; 33 | self.tableView.dataSource = self; 34 | self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 35 | [self.lh_view addSubview:self.tableView]; 36 | } 37 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ 38 | [NSException raise:@"LHTableviewController exception" format:@"Subclass should override this method at %d",__LINE__]; 39 | return 0; 40 | } 41 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ 42 | [NSException raise:@"LHTableviewController exception" format:@"Subclass should override this method at %d",__LINE__]; 43 | return nil; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHViewController.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // 7 | // 8 | 9 | #import 10 | #import "LHNavigationController.h" 11 | 12 | /** 13 | * Use subclass of this to create your application 14 | */ 15 | @interface LHViewController : UIViewController 16 | 17 | /** 18 | * Private navigaitonBar that is added to self.view 19 | */ 20 | @property (strong,nonatomic,readonly)UINavigationBar * lh_navigationBar; 21 | 22 | @property (strong,nonatomic,readonly)UINavigationItem * lh_navigationItem; 23 | 24 | @property (strong,nonatomic,readonly)UIView * lh_view; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/LHViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHViewController.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/6/26. 6 | // 7 | // 8 | 9 | #import "LHViewController.h" 10 | #define LH_NAV_BAR_HEIGHT 44 11 | @interface LHViewController () 12 | 13 | @property (strong,nonatomic,readwrite)UINavigationBar * lh_navigationBar; 14 | 15 | @property (strong,nonatomic,readwrite)UINavigationItem * lh_navigationItem; 16 | 17 | @property (strong,nonatomic,readwrite)UIView * lh_view; 18 | 19 | @end 20 | @implementation LHViewController 21 | 22 | #pragma mark - Property 23 | - (UIView *)lh_view{ 24 | if (_lh_view == nil) { 25 | _lh_view = [[UIView alloc] init]; 26 | } 27 | return _lh_view; 28 | } 29 | - (UINavigationBar *)lh_navigationBar{ 30 | if (_lh_navigationBar == nil) { 31 | _lh_navigationBar = [[UINavigationBar alloc] init]; 32 | } 33 | return _lh_navigationBar; 34 | } 35 | - (UINavigationItem *)lh_navigationItem{ 36 | if (_lh_navigationItem == nil) { 37 | _lh_navigationItem = [[UINavigationItem alloc] init]; 38 | } 39 | return _lh_navigationItem; 40 | } 41 | #pragma mark - Left Circle 42 | 43 | - (void)viewDidLoad{ 44 | [super viewDidLoad]; 45 | self.lh_navigationBar.translatesAutoresizingMaskIntoConstraints = NO; 46 | self.lh_navigationBar.items = @[self.lh_navigationItem]; 47 | [self.view addSubview:_lh_navigationBar]; 48 | 49 | self.lh_view.translatesAutoresizingMaskIntoConstraints = NO; 50 | [self.view addSubview:_lh_view]; 51 | [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_lh_navigationBar]-0-|" 52 | options:0 53 | metrics:nil 54 | views:NSDictionaryOfVariableBindings(_lh_navigationBar)]]; 55 | [self.view addConstraint:[NSLayoutConstraint constraintWithItem:_lh_navigationBar 56 | attribute:NSLayoutAttributeTop 57 | relatedBy:NSLayoutRelationEqual 58 | toItem:self.topLayoutGuide 59 | attribute:NSLayoutAttributeBottom 60 | multiplier:1.0 61 | constant:0.0]]; 62 | [self.view addConstraint:[NSLayoutConstraint constraintWithItem:_lh_navigationBar 63 | attribute:NSLayoutAttributeHeight 64 | relatedBy:NSLayoutRelationEqual 65 | toItem:nil 66 | attribute:NSLayoutAttributeNotAnAttribute 67 | multiplier:1.0 68 | constant:LH_NAV_BAR_HEIGHT]]; 69 | 70 | [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_lh_view]-0-|" 71 | options:0 72 | metrics:nil 73 | views:NSDictionaryOfVariableBindings(_lh_view)]]; 74 | 75 | [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[_lh_navigationBar]-0-[_lh_view]-0-|" 76 | options:0 77 | metrics:nil 78 | views:NSDictionaryOfVariableBindings(_lh_view,_lh_navigationBar)]]; 79 | [self.view bringSubviewToFront:self.lh_navigationBar]; 80 | self.view.backgroundColor = [UIColor whiteColor]; 81 | self.lh_navigationBar.translucent = NO; 82 | } 83 | 84 | @end 85 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/UIViewController+LHNavigation.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+LHNavigation.h 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/7/1. 6 | // 7 | // 8 | 9 | #import 10 | #import "LHNavigationController.h" 11 | 12 | @interface UIViewController (LHNavigation) 13 | 14 | @property (strong,nonatomic)UIColor * lh_barTintColor; 15 | 16 | @property (strong,nonatomic)UIColor * lh_barItemsTintColor; 17 | 18 | @property (strong,nonatomic)UIColor * lh_barTitlesTintColor; 19 | 20 | @property (strong,nonatomic,readonly)LHNavigationController * lh_navigationController; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /LHNavigationController/Classes/UIViewController+LHNavigation.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+LHNavigation.m 3 | // Pods 4 | // 5 | // Created by huangwenchen on 16/7/1. 6 | // 7 | // 8 | 9 | #import "UIViewController+LHNavigation.h" 10 | #import 11 | #import "LHViewController.h" 12 | 13 | @implementation UIViewController (LHNavigation) 14 | 15 | - (void)setLh_barTintColor:(UIColor *)lh_barTintColor{ 16 | objc_setAssociatedObject(self, @selector(lh_barTintColor),lh_barTintColor, OBJC_ASSOCIATION_RETAIN); 17 | if ([self isKindOfClass:[LHViewController class]]) { 18 | LHViewController * vc = (LHViewController *)self; 19 | vc.view.backgroundColor = lh_barTintColor; 20 | vc.lh_navigationBar.barTintColor = lh_barTintColor; 21 | }else{ 22 | self.navigationController.navigationBar.barTintColor = lh_barTintColor; 23 | } 24 | } 25 | - (UIColor *)lh_barTintColor{ 26 | UIColor * color = objc_getAssociatedObject(self, _cmd); 27 | return color; 28 | } 29 | - (void)setLh_barItemsTintColor:(UIColor *)lh_barItemsTintColor{ 30 | objc_setAssociatedObject(self, @selector(lh_barItemsTintColor),lh_barItemsTintColor, OBJC_ASSOCIATION_RETAIN); 31 | if ([self isKindOfClass:[LHViewController class]]) { 32 | LHViewController * vc = (LHViewController *)self; 33 | vc.lh_navigationBar.tintColor = lh_barItemsTintColor; 34 | }else{ 35 | self.navigationController.navigationBar.tintColor = lh_barItemsTintColor; 36 | } 37 | } 38 | - (UIColor *)lh_barItemsTintColor{ 39 | UIColor * color = objc_getAssociatedObject(self, _cmd); 40 | return color; 41 | } 42 | - (void)setLh_barTitlesTintColor:(UIColor *)lh_barTitlesTintColor{ 43 | objc_setAssociatedObject(self, @selector(lh_barTitlesTintColor),lh_barTitlesTintColor, OBJC_ASSOCIATION_RETAIN); 44 | if ([self isKindOfClass:[LHViewController class]]) { 45 | LHViewController * vc = (LHViewController *)self; 46 | NSMutableDictionary * titleAttributs = [vc.lh_navigationBar.titleTextAttributes mutableCopy]; 47 | if (titleAttributs == nil) { 48 | titleAttributs = [NSMutableDictionary new]; 49 | } 50 | [titleAttributs setObject:lh_barTitlesTintColor forKey:NSForegroundColorAttributeName]; 51 | vc.lh_navigationBar.titleTextAttributes = titleAttributs; 52 | }else{ 53 | NSMutableDictionary * titleAttributs = [self.navigationController.navigationBar.titleTextAttributes mutableCopy]; 54 | if (titleAttributs == nil) { 55 | titleAttributs = [NSMutableDictionary new]; 56 | } 57 | [titleAttributs setObject:lh_barTitlesTintColor forKey:NSForegroundColorAttributeName]; 58 | self.navigationController.navigationBar.titleTextAttributes = titleAttributs; 59 | } 60 | } 61 | - (UIColor *)lh_barTitlesTintColor{ 62 | UIColor * color = objc_getAssociatedObject(self, _cmd); 63 | return color; 64 | } 65 | - (LHNavigationController *)lh_navigationController{ 66 | UINavigationController * nav = self.navigationController; 67 | if ([nav isKindOfClass:[LHNavigationController class]]) { 68 | return (LHNavigationController *)nav; 69 | } 70 | return nil; 71 | } 72 | @end 73 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Leo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | [![Build Status](https://travis-ci.org/LeoMobileDeveloper/LHNavigationController.svg?branch=master)](https://travis-ci.org/LeoMobileDeveloper/LHProgressHUD) [![License: MIT](https://img.shields.io/cocoapods/l/LHNavigationController.svg?style=flat)](http://opensource.org/licenses/MIT) [![Version](https://img.shields.io/cocoapods/v/LHNavigationController.svg?style=flat)](http://cocoapods.org/pods/LHNavigationController) 3 | 4 | 5 | # LHNavigationController 6 | 7 | LHNavigationController能够让你的App像网易新闻那样支持全屏的push/pop. 8 | 9 | 0.1.2版本支持 10 | 11 | - 全屏push手势 12 | - 全屏pop手势 13 | - 切换的时候导航栏背景色平滑切换 14 | - 类似网易或者斗鱼的导航栏切换效果 15 | 16 | 17 | ## 安装 18 | 19 | ``` 20 | pod LHNavigationController 21 | ``` 22 | 如果在Swift项目中应用(参见SwiftDemo工程) 23 | 24 | ``` 25 | use_frameworks! 26 | pod LHNavigationController 27 | ``` 28 | 然后,在使用的swift文件中 29 | 30 | ``` 31 | import LHNavigationController 32 | ``` 33 | ## 效果 34 | 35 | 默认效果 36 | 37 | 38 | 39 | 3d效果 40 | 41 | 42 | 43 | ## 类 44 | 主要有四个类 45 | 46 | * LHNavigationController(如果你只需要全屏push/pop,导航栏背景色平滑切换,只需要这个一类即可,默认导航栏Hidden) 47 | 48 | 如果你想要实现网易那样的NavigationBar切换效果,你需要让某些类继承以下 49 | 50 | * LHViewController 51 | * LHTableViewController 52 | * LHCollectionViewController 53 | 54 | 55 | ## Pop 56 | 57 | 想要支持全屏的Pop手势很简单,只需要把你的UINavigationController替换成LHNavigationController即可 58 | 59 | ## Push 60 | 61 | 实现全屏的Push需要你设置LHNavigationController的代理 `lhDelegate` 62 | 63 | ``` 64 | @property (weak,nonatomic) id lhDelegate; 65 | 66 | ``` 67 | 68 | 然后,在对应的方法中,返回将要push的controller 69 | 70 | ``` 71 | - (UIViewController *)viewControllerAfterController:(UIViewController *)controller{ 72 | //这里的controller是导航堆栈最上面的那个 73 | } 74 | ``` 75 | 76 | 77 | ## 获得网易or斗鱼类似的导航栏切换效果 78 | 79 | 需要继承LHViewController来让ViewControlelr自带导航栏 80 | 81 | ## 属性 82 | 83 | LHViewController 84 | 85 | ``` 86 | // 访问导航栏 87 | @property (strong,nonatomic,readonly)UINavigationBar * lh_navigationBar; 88 | 89 | // 访问navigationItem 90 | @property (strong,nonatomic,readonly)UINavigationItem * lh_navigationItem; 91 | 92 | // 用这个作为ContainView来增加删除subview 93 | @property (strong,nonatomic,readonly)UIView * lh_view; 94 | 95 | // 访问LHNativationController 96 | @property (strong,nonatomic,readonly)LHNavigationController * lh_navigationController; 97 | 98 | // 设置NavigationBar背景色 99 | @property (strong,nonatomic)UIColor * barTintColor; 100 | 101 | // 设置BarButton颜色 102 | @property (strong,nonatomic)UIColor * barItemsTintColor; 103 | // 设置BarTitle颜色 104 | @property (strong,nonatomic)UIColor * barTitlesTintColor 105 | ``` 106 | 107 | LHNavigationController 108 | 109 | ``` 110 | //设置转换风格,支持默认和3D两种 111 | @property (assign,nonatomic) LHNavigationTransitionStyle lh_transtionStyle; 112 | 113 | ``` 114 | ## 原理 115 | 116 | 我在[这篇博客](http://blog.csdn.net/hello_hwc/article/details/51764459)里详细的讲解了这个库的实现原理。 117 | 118 | ## Author 119 | 120 | Leo, leomobiledeveloper 121 | 122 | ## License 123 | 124 | LHNavigationController is available under the MIT license. See the LICENSE file for more info. 125 | -------------------------------------------------------------------------------- /ScreenShots/gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/ScreenShots/gif.gif -------------------------------------------------------------------------------- /ScreenShots/gif2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoMobileDeveloper/LHNavigationController/2b29775cbec1865239601e3bf2d424f1b803866b/ScreenShots/gif2.gif -------------------------------------------------------------------------------- /SwiftExample/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | platform :ios, ‘8.0’ 3 | 4 | target 'SwiftExample' do 5 | use_frameworks! 6 | pod 'LHNavigationController', :path => '../' 7 | end 8 | -------------------------------------------------------------------------------- /SwiftExample/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LHNavigationController (0.1.1) 3 | 4 | DEPENDENCIES: 5 | - LHNavigationController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LHNavigationController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LHNavigationController: e7b793171fe3fc6cfb1fa90dfbb4d3fc02ad6733 13 | 14 | PODFILE CHECKSUM: 75ad05e5f77e66e655ff43686708a02220e395ac 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /SwiftExample/Pods/LHNavigationController/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Leo 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /SwiftExample/Pods/LHNavigationController/README.md: -------------------------------------------------------------------------------- 1 | 2 | [![Version](https://img.shields.io/cocoapods/v/LHNavigationController.svg?style=flat)](http://cocoapods.org/pods/LHNavigationController) 3 | 4 | 5 | # LHNavigationController 6 | 7 | LHNavigationController能够让你的App像网易新闻那样支持全屏的push/pop. 8 | 9 | ## 安装 10 | 11 | ``` 12 | pod LHNavigationController 13 | ``` 14 | 15 | ## 效果 16 | 17 | 默认效果 18 | 19 | 20 | 21 | 3d效果 22 | 23 | 24 | 25 | ## 类 26 | 主要有四个类 27 | 28 | * LHNavigationController 29 | * LHViewController 30 | * LHTableViewController 31 | * LHCollectionViewController 32 | 33 | 通常,你应该以这三个类为基类来建立你的App 34 | 35 | 36 | ## Pop 37 | 38 | 想要支持全屏的Pop手势很简单,只需要把你的UINavigationController替换成LHNavigationController即可 39 | 40 | ## Push 41 | 42 | 实现全屏的Push需要你设置LHNavigationController的代理 `lhDelegate` 43 | 44 | ``` 45 | @property (weak,nonatomic) id lhDelegate; 46 | 47 | ``` 48 | 49 | 然后,在对应的方法中,返回将要push的controller 50 | 51 | ``` 52 | - (UIViewController *)viewControllerAfterController:(UIViewController *)controller{ 53 | //这里的controller是导航堆栈最上面的那个 54 | } 55 | 56 | ``` 57 | 58 | ## 属性 59 | 60 | LHViewController 61 | 62 | ``` 63 | // 访问导航栏 64 | @property (strong,nonatomic,readonly)UINavigationBar * lh_navigationBar; 65 | 66 | // 访问navigationItem 67 | @property (strong,nonatomic,readonly)UINavigationItem * lh_navigationItem; 68 | 69 | // 用这个作为ContainView来增加删除subview 70 | @property (strong,nonatomic,readonly)UIView * lh_view; 71 | 72 | // 访问LHNativationController 73 | @property (strong,nonatomic,readonly)LHNavigationController * lh_navigationController; 74 | 75 | // 设置NavigationBar背景色 76 | @property (strong,nonatomic)UIColor * barTintColor; 77 | 78 | // 设置BarButton颜色 79 | @property (strong,nonatomic)UIColor * barItemsTintColor; 80 | // 设置BarTitle颜色 81 | @property (strong,nonatomic)UIColor * barTitlesTintColor 82 | ``` 83 | 84 | LHNavigationController 85 | 86 | ``` 87 | //设置转换风格,支持默认和3D两种 88 | @property (assign,nonatomic) LHNavigationTransitionStyle lh_transtionStyle; 89 | 90 | ``` 91 | ## 原理 92 | 93 | 我在[这篇博客](http://blog.csdn.net/hello_hwc/article/details/51764459)里详细的讲解了这个库的实现原理。 94 | 95 | ## Author 96 | 97 | Leo, leomobiledeveloper 98 | 99 | ## License 100 | 101 | LHNavigationController is available under the MIT license. See the LICENSE file for more info. 102 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Local Podspecs/LHNavigationController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "LHNavigationController", 3 | "version": "0.1.1", 4 | "summary": "A UINavigationController subclass that allow you push/pop with full screen pan", 5 | "description": "A UINavigationController subclass that allow you push/pop with full screen pan(类似网易新闻,支持全屏push/pop)", 6 | "homepage": "https://github.com/LeoMobileDeveloper/LHNavigationController", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Leo": "leomobiledeveloper" 13 | }, 14 | "source": { 15 | "git": "https://github.com/LeoMobileDeveloper/LHNavigationController.git", 16 | "tag": "0.1.1" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "LHNavigationController/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LHNavigationController (0.1.1) 3 | 4 | DEPENDENCIES: 5 | - LHNavigationController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LHNavigationController: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LHNavigationController: e7b793171fe3fc6cfb1fa90dfbb4d3fc02ad6733 13 | 14 | PODFILE CHECKSUM: 75ad05e5f77e66e655ff43686708a02220e395ac 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/LHNavigationController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_LHNavigationController : NSObject 3 | @end 4 | @implementation PodsDummy_LHNavigationController 5 | @end 6 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/LHNavigationController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/LHNavigationController-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "LH3DAnimator.h" 4 | #import "LHBaseAnimator.h" 5 | #import "LHCollectionViewController.h" 6 | #import "LHDefaultAnimator.h" 7 | #import "LHNavigation.h" 8 | #import "LHNavigationController.h" 9 | #import "LHTableViewController.h" 10 | #import "LHViewController.h" 11 | #import "UIViewController+LHNavigation.h" 12 | 13 | FOUNDATION_EXPORT double LHNavigationControllerVersionNumber; 14 | FOUNDATION_EXPORT const unsigned char LHNavigationControllerVersionString[]; 15 | 16 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/LHNavigationController.modulemap: -------------------------------------------------------------------------------- 1 | framework module LHNavigationController { 2 | umbrella header "LHNavigationController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/LHNavigationController/LHNavigationController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/LHNavigationController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 8 | SKIP_INSTALL = YES 9 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## LHNavigationController 5 | 6 | Copyright (c) 2016 Leo 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Leo <leomobiledeveloper> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | LHNavigationController 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - https://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SwiftExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SwiftExample 5 | @end 6 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/LHNavigationController/LHNavigationController.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/LHNavigationController/LHNavigationController.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_SwiftExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_SwiftExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "LHNavigationController" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SwiftExample { 2 | umbrella header "Pods-SwiftExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /SwiftExample/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LHNavigationController/LHNavigationController.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "LHNavigationController" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2A5794813B80AB7E04024258 /* Pods_SwiftExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DDEAC82BCC2AF06D784BBEF /* Pods_SwiftExample.framework */; }; 11 | 520C6C9B1D26AAAC00F9948B /* SecondController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 520C6C9A1D26AAAC00F9948B /* SecondController.swift */; }; 12 | 528123801D23DCEE00FD9FE7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5281237F1D23DCEE00FD9FE7 /* AppDelegate.swift */; }; 13 | 528123821D23DCEE00FD9FE7 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 528123811D23DCEE00FD9FE7 /* ViewController.swift */; }; 14 | 528123851D23DCEE00FD9FE7 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 528123831D23DCEE00FD9FE7 /* Main.storyboard */; }; 15 | 528123871D23DCEE00FD9FE7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 528123861D23DCEE00FD9FE7 /* Assets.xcassets */; }; 16 | 5281238A1D23DCEE00FD9FE7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 528123881D23DCEE00FD9FE7 /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 1DDEAC82BCC2AF06D784BBEF /* Pods_SwiftExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 520C6C9A1D26AAAC00F9948B /* SecondController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecondController.swift; sourceTree = ""; }; 22 | 5281237C1D23DCEE00FD9FE7 /* SwiftExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 5281237F1D23DCEE00FD9FE7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | 528123811D23DCEE00FD9FE7 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 25 | 528123841D23DCEE00FD9FE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | 528123861D23DCEE00FD9FE7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | 528123891D23DCEE00FD9FE7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 28 | 5281238B1D23DCEE00FD9FE7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | 9F8DC01865CA4EF6CF999C14 /* Pods-SwiftExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.debug.xcconfig"; sourceTree = ""; }; 30 | BD8F1DD2EB3C9364D01934E0 /* Pods-SwiftExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample.release.xcconfig"; sourceTree = ""; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 528123791D23DCEE00FD9FE7 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | 2A5794813B80AB7E04024258 /* Pods_SwiftExample.framework in Frameworks */, 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 528123731D23DCEE00FD9FE7 = { 46 | isa = PBXGroup; 47 | children = ( 48 | 5281237E1D23DCEE00FD9FE7 /* SwiftExample */, 49 | 5281237D1D23DCEE00FD9FE7 /* Products */, 50 | E5137B83D79B8AEEE9A45164 /* Pods */, 51 | A9DE20CCF2327FBED1AEFDE2 /* Frameworks */, 52 | ); 53 | sourceTree = ""; 54 | }; 55 | 5281237D1D23DCEE00FD9FE7 /* Products */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | 5281237C1D23DCEE00FD9FE7 /* SwiftExample.app */, 59 | ); 60 | name = Products; 61 | sourceTree = ""; 62 | }; 63 | 5281237E1D23DCEE00FD9FE7 /* SwiftExample */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | 5281237F1D23DCEE00FD9FE7 /* AppDelegate.swift */, 67 | 528123811D23DCEE00FD9FE7 /* ViewController.swift */, 68 | 520C6C9A1D26AAAC00F9948B /* SecondController.swift */, 69 | 528123831D23DCEE00FD9FE7 /* Main.storyboard */, 70 | 528123861D23DCEE00FD9FE7 /* Assets.xcassets */, 71 | 5281238B1D23DCEE00FD9FE7 /* Info.plist */, 72 | 528123881D23DCEE00FD9FE7 /* LaunchScreen.storyboard */, 73 | ); 74 | path = SwiftExample; 75 | sourceTree = ""; 76 | }; 77 | A9DE20CCF2327FBED1AEFDE2 /* Frameworks */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 1DDEAC82BCC2AF06D784BBEF /* Pods_SwiftExample.framework */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | E5137B83D79B8AEEE9A45164 /* Pods */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 9F8DC01865CA4EF6CF999C14 /* Pods-SwiftExample.debug.xcconfig */, 89 | BD8F1DD2EB3C9364D01934E0 /* Pods-SwiftExample.release.xcconfig */, 90 | ); 91 | name = Pods; 92 | sourceTree = ""; 93 | }; 94 | /* End PBXGroup section */ 95 | 96 | /* Begin PBXNativeTarget section */ 97 | 5281237B1D23DCEE00FD9FE7 /* SwiftExample */ = { 98 | isa = PBXNativeTarget; 99 | buildConfigurationList = 5281238E1D23DCEE00FD9FE7 /* Build configuration list for PBXNativeTarget "SwiftExample" */; 100 | buildPhases = ( 101 | 3B630B709C0740B2D141423E /* 📦 Check Pods Manifest.lock */, 102 | 528123781D23DCEE00FD9FE7 /* Sources */, 103 | 528123791D23DCEE00FD9FE7 /* Frameworks */, 104 | 5281237A1D23DCEE00FD9FE7 /* Resources */, 105 | 6F781971F2B5060E8500004B /* 📦 Embed Pods Frameworks */, 106 | BDA8C07A12EE5BAF2E6E7C87 /* 📦 Copy Pods Resources */, 107 | ); 108 | buildRules = ( 109 | ); 110 | dependencies = ( 111 | ); 112 | name = SwiftExample; 113 | productName = SwiftExample; 114 | productReference = 5281237C1D23DCEE00FD9FE7 /* SwiftExample.app */; 115 | productType = "com.apple.product-type.application"; 116 | }; 117 | /* End PBXNativeTarget section */ 118 | 119 | /* Begin PBXProject section */ 120 | 528123741D23DCEE00FD9FE7 /* Project object */ = { 121 | isa = PBXProject; 122 | attributes = { 123 | LastSwiftUpdateCheck = 0730; 124 | LastUpgradeCheck = 0730; 125 | ORGANIZATIONNAME = Leo; 126 | TargetAttributes = { 127 | 5281237B1D23DCEE00FD9FE7 = { 128 | CreatedOnToolsVersion = 7.3.1; 129 | }; 130 | }; 131 | }; 132 | buildConfigurationList = 528123771D23DCEE00FD9FE7 /* Build configuration list for PBXProject "SwiftExample" */; 133 | compatibilityVersion = "Xcode 3.2"; 134 | developmentRegion = English; 135 | hasScannedForEncodings = 0; 136 | knownRegions = ( 137 | en, 138 | Base, 139 | ); 140 | mainGroup = 528123731D23DCEE00FD9FE7; 141 | productRefGroup = 5281237D1D23DCEE00FD9FE7 /* Products */; 142 | projectDirPath = ""; 143 | projectRoot = ""; 144 | targets = ( 145 | 5281237B1D23DCEE00FD9FE7 /* SwiftExample */, 146 | ); 147 | }; 148 | /* End PBXProject section */ 149 | 150 | /* Begin PBXResourcesBuildPhase section */ 151 | 5281237A1D23DCEE00FD9FE7 /* Resources */ = { 152 | isa = PBXResourcesBuildPhase; 153 | buildActionMask = 2147483647; 154 | files = ( 155 | 5281238A1D23DCEE00FD9FE7 /* LaunchScreen.storyboard in Resources */, 156 | 528123871D23DCEE00FD9FE7 /* Assets.xcassets in Resources */, 157 | 528123851D23DCEE00FD9FE7 /* Main.storyboard in Resources */, 158 | ); 159 | runOnlyForDeploymentPostprocessing = 0; 160 | }; 161 | /* End PBXResourcesBuildPhase section */ 162 | 163 | /* Begin PBXShellScriptBuildPhase section */ 164 | 3B630B709C0740B2D141423E /* 📦 Check Pods Manifest.lock */ = { 165 | isa = PBXShellScriptBuildPhase; 166 | buildActionMask = 2147483647; 167 | files = ( 168 | ); 169 | inputPaths = ( 170 | ); 171 | name = "📦 Check Pods Manifest.lock"; 172 | outputPaths = ( 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | shellPath = /bin/sh; 176 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 177 | showEnvVarsInLog = 0; 178 | }; 179 | 6F781971F2B5060E8500004B /* 📦 Embed Pods Frameworks */ = { 180 | isa = PBXShellScriptBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | ); 184 | inputPaths = ( 185 | ); 186 | name = "📦 Embed Pods Frameworks"; 187 | outputPaths = ( 188 | ); 189 | runOnlyForDeploymentPostprocessing = 0; 190 | shellPath = /bin/sh; 191 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-frameworks.sh\"\n"; 192 | showEnvVarsInLog = 0; 193 | }; 194 | BDA8C07A12EE5BAF2E6E7C87 /* 📦 Copy Pods Resources */ = { 195 | isa = PBXShellScriptBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | ); 199 | inputPaths = ( 200 | ); 201 | name = "📦 Copy Pods Resources"; 202 | outputPaths = ( 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | shellPath = /bin/sh; 206 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwiftExample/Pods-SwiftExample-resources.sh\"\n"; 207 | showEnvVarsInLog = 0; 208 | }; 209 | /* End PBXShellScriptBuildPhase section */ 210 | 211 | /* Begin PBXSourcesBuildPhase section */ 212 | 528123781D23DCEE00FD9FE7 /* Sources */ = { 213 | isa = PBXSourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | 520C6C9B1D26AAAC00F9948B /* SecondController.swift in Sources */, 217 | 528123821D23DCEE00FD9FE7 /* ViewController.swift in Sources */, 218 | 528123801D23DCEE00FD9FE7 /* AppDelegate.swift in Sources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXSourcesBuildPhase section */ 223 | 224 | /* Begin PBXVariantGroup section */ 225 | 528123831D23DCEE00FD9FE7 /* Main.storyboard */ = { 226 | isa = PBXVariantGroup; 227 | children = ( 228 | 528123841D23DCEE00FD9FE7 /* Base */, 229 | ); 230 | name = Main.storyboard; 231 | sourceTree = ""; 232 | }; 233 | 528123881D23DCEE00FD9FE7 /* LaunchScreen.storyboard */ = { 234 | isa = PBXVariantGroup; 235 | children = ( 236 | 528123891D23DCEE00FD9FE7 /* Base */, 237 | ); 238 | name = LaunchScreen.storyboard; 239 | sourceTree = ""; 240 | }; 241 | /* End PBXVariantGroup section */ 242 | 243 | /* Begin XCBuildConfiguration section */ 244 | 5281238C1D23DCEE00FD9FE7 /* Debug */ = { 245 | isa = XCBuildConfiguration; 246 | buildSettings = { 247 | ALWAYS_SEARCH_USER_PATHS = NO; 248 | CLANG_ANALYZER_NONNULL = YES; 249 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 250 | CLANG_CXX_LIBRARY = "libc++"; 251 | CLANG_ENABLE_MODULES = YES; 252 | CLANG_ENABLE_OBJC_ARC = YES; 253 | CLANG_WARN_BOOL_CONVERSION = YES; 254 | CLANG_WARN_CONSTANT_CONVERSION = YES; 255 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 256 | CLANG_WARN_EMPTY_BODY = YES; 257 | CLANG_WARN_ENUM_CONVERSION = YES; 258 | CLANG_WARN_INT_CONVERSION = YES; 259 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = dwarf; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | ENABLE_TESTABILITY = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_DYNAMIC_NO_PIC = NO; 269 | GCC_NO_COMMON_BLOCKS = YES; 270 | GCC_OPTIMIZATION_LEVEL = 0; 271 | GCC_PREPROCESSOR_DEFINITIONS = ( 272 | "DEBUG=1", 273 | "$(inherited)", 274 | ); 275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 279 | GCC_WARN_UNUSED_FUNCTION = YES; 280 | GCC_WARN_UNUSED_VARIABLE = YES; 281 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 282 | MTL_ENABLE_DEBUG_INFO = YES; 283 | ONLY_ACTIVE_ARCH = YES; 284 | SDKROOT = iphoneos; 285 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 286 | TARGETED_DEVICE_FAMILY = "1,2"; 287 | }; 288 | name = Debug; 289 | }; 290 | 5281238D1D23DCEE00FD9FE7 /* Release */ = { 291 | isa = XCBuildConfiguration; 292 | buildSettings = { 293 | ALWAYS_SEARCH_USER_PATHS = NO; 294 | CLANG_ANALYZER_NONNULL = YES; 295 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 296 | CLANG_CXX_LIBRARY = "libc++"; 297 | CLANG_ENABLE_MODULES = YES; 298 | CLANG_ENABLE_OBJC_ARC = YES; 299 | CLANG_WARN_BOOL_CONVERSION = YES; 300 | CLANG_WARN_CONSTANT_CONVERSION = YES; 301 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 302 | CLANG_WARN_EMPTY_BODY = YES; 303 | CLANG_WARN_ENUM_CONVERSION = YES; 304 | CLANG_WARN_INT_CONVERSION = YES; 305 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 306 | CLANG_WARN_UNREACHABLE_CODE = YES; 307 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 308 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 309 | COPY_PHASE_STRIP = NO; 310 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 311 | ENABLE_NS_ASSERTIONS = NO; 312 | ENABLE_STRICT_OBJC_MSGSEND = YES; 313 | GCC_C_LANGUAGE_STANDARD = gnu99; 314 | GCC_NO_COMMON_BLOCKS = YES; 315 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 316 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 317 | GCC_WARN_UNDECLARED_SELECTOR = YES; 318 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 319 | GCC_WARN_UNUSED_FUNCTION = YES; 320 | GCC_WARN_UNUSED_VARIABLE = YES; 321 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 322 | MTL_ENABLE_DEBUG_INFO = NO; 323 | SDKROOT = iphoneos; 324 | TARGETED_DEVICE_FAMILY = "1,2"; 325 | VALIDATE_PRODUCT = YES; 326 | }; 327 | name = Release; 328 | }; 329 | 5281238F1D23DCEE00FD9FE7 /* Debug */ = { 330 | isa = XCBuildConfiguration; 331 | baseConfigurationReference = 9F8DC01865CA4EF6CF999C14 /* Pods-SwiftExample.debug.xcconfig */; 332 | buildSettings = { 333 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 334 | CLANG_ENABLE_MODULES = YES; 335 | INFOPLIST_FILE = SwiftExample/Info.plist; 336 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 337 | PRODUCT_BUNDLE_IDENTIFIER = Leo.SwiftExample; 338 | PRODUCT_NAME = "$(TARGET_NAME)"; 339 | SWIFT_OBJC_BRIDGING_HEADER = ""; 340 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 341 | }; 342 | name = Debug; 343 | }; 344 | 528123901D23DCEE00FD9FE7 /* Release */ = { 345 | isa = XCBuildConfiguration; 346 | baseConfigurationReference = BD8F1DD2EB3C9364D01934E0 /* Pods-SwiftExample.release.xcconfig */; 347 | buildSettings = { 348 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 349 | CLANG_ENABLE_MODULES = YES; 350 | INFOPLIST_FILE = SwiftExample/Info.plist; 351 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 352 | PRODUCT_BUNDLE_IDENTIFIER = Leo.SwiftExample; 353 | PRODUCT_NAME = "$(TARGET_NAME)"; 354 | SWIFT_OBJC_BRIDGING_HEADER = ""; 355 | }; 356 | name = Release; 357 | }; 358 | /* End XCBuildConfiguration section */ 359 | 360 | /* Begin XCConfigurationList section */ 361 | 528123771D23DCEE00FD9FE7 /* Build configuration list for PBXProject "SwiftExample" */ = { 362 | isa = XCConfigurationList; 363 | buildConfigurations = ( 364 | 5281238C1D23DCEE00FD9FE7 /* Debug */, 365 | 5281238D1D23DCEE00FD9FE7 /* Release */, 366 | ); 367 | defaultConfigurationIsVisible = 0; 368 | defaultConfigurationName = Release; 369 | }; 370 | 5281238E1D23DCEE00FD9FE7 /* Build configuration list for PBXNativeTarget "SwiftExample" */ = { 371 | isa = XCConfigurationList; 372 | buildConfigurations = ( 373 | 5281238F1D23DCEE00FD9FE7 /* Debug */, 374 | 528123901D23DCEE00FD9FE7 /* Release */, 375 | ); 376 | defaultConfigurationIsVisible = 0; 377 | defaultConfigurationName = Release; 378 | }; 379 | /* End XCConfigurationList section */ 380 | }; 381 | rootObject = 528123741D23DCEE00FD9FE7 /* Project object */; 382 | } 383 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftExample 4 | // 5 | // Created by huangwenchen on 16/6/29. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 17 | UINavigationBar.appearance().tintColor = UIColor.whiteColor() 18 | UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName:UIColor.whiteColor()] 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/SecondController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SecondController.swift 3 | // SwiftExample 4 | // 5 | // Created by huangwenchen on 16/7/1. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | class SecondController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | self.lh_barTintColor = UIColor.blueColor() 17 | self.navigationItem.title = "Second"; 18 | self.view.backgroundColor = UIColor.whiteColor() 19 | // Do any additional setup after loading the view, typically from a nib. 20 | } 21 | 22 | func back(){ 23 | self.lh_navigationController.popViewControllerAnimated(true) 24 | } 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /SwiftExample/SwiftExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SwiftExample 4 | // 5 | // Created by huangwenchen on 16/6/29. 6 | // Copyright © 2016年 Leo. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LHNavigationController 11 | 12 | class ViewController: UIViewController,LHNavigationControllerDelegate{ 13 | 14 | @IBAction func toSecond(sender: AnyObject) { 15 | let svc = SecondController() 16 | self.navigationController?.pushViewController(svc, animated: true) 17 | } 18 | func viewControllerAfterController(controller: UIViewController?) -> UIViewController? { 19 | if controller == self { 20 | let svc = SecondController() 21 | return svc 22 | } 23 | return nil 24 | } 25 | override func viewDidLoad() { 26 | super.viewDidLoad() 27 | self.lh_barTintColor = UIColor.orangeColor() 28 | self.lh_navigationController.lhDelegate = self; 29 | self.lh_navigationController.setNavigationBarHidden(false, animated: false) 30 | // Do any additional setup after loading the view, typically from a nib. 31 | } 32 | 33 | override func didReceiveMemoryWarning() { 34 | super.didReceiveMemoryWarning() 35 | // Dispose of any resources that can be recreated. 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------