diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31faac4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,45 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata + +## Other +*.xccheckout +*.moved-aside +*.xcuserstate + +## Obj-C/Swift specific +*.hmap +*.ipa + +# CocoaPods +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +#Pods/ + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build + +*.xcuserstate + diff --git a/Example/MLTransitionNavigationController.xcworkspace/xcuserdata/molon.xcuserdatad/UserInterfaceState.xcuserstate b/Example/MLTransitionNavigationController.xcworkspace/xcuserdata/molon.xcuserdatad/UserInterfaceState.xcuserstate index 59b85f1..fe5115b 100644 Binary files a/Example/MLTransitionNavigationController.xcworkspace/xcuserdata/molon.xcuserdatad/UserInterfaceState.xcuserstate and b/Example/MLTransitionNavigationController.xcworkspace/xcuserdata/molon.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/MLTransitionNavigationController/AppDelegate.m b/Example/MLTransitionNavigationController/AppDelegate.m index b69f0f8..e6d3773 100644 --- a/Example/MLTransitionNavigationController/AppDelegate.m +++ b/Example/MLTransitionNavigationController/AppDelegate.m @@ -13,12 +13,16 @@ @implementation AppDelegate +- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(nullable NSDictionary *)launchOption{ +#warning one line to validate + [MLTransition validatePanBackWithMLTransitionGestureRecognizerType:MLTransitionGestureRecognizerTypePan];//or MLTransitionGestureRecognizerTypeScreenEdgePan + //... + return YES; +} + - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. - //一句话启用 - [MLTransition validatePanPackWithMLTransitionGestureRecognizerType:MLTransitionGestureRecognizerTypePan]; - //简单搞下demo颜色 UIColor *navBarColor = [UIColor colorWithRed:0.063 green:0.263 blue:0.455 alpha:1.000]; diff --git a/MLTransition.podspec b/MLTransition.podspec index 41fa9ae..2e7aa13 100644 --- a/MLTransition.podspec +++ b/MLTransition.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "MLTransition" -s.version = "2.0.1" +s.version = "2.1.0" s.summary = "iOS7+, pop ViewController with pan gesture from middle or edge of screen. " s.homepage = "https://github.com/molon/MLTransition" s.license = "MIT" diff --git a/README.md b/README.md index c1c86a1..c3deed4 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,16 @@ The libirary uses a unpublish api(not private). But it's ok in my experience. My but if you use this library, tell me if you like. :)** ![MLTransition](https://raw.githubusercontent.com/molon/MLTransition/master/MLTransition.gif) + + +# Usage + +``` +- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(nullable NSDictionary *)launchOption{ +[MLTransition validatePanBackWithMLTransitionGestureRecognizerType:MLTransitionGestureRecognizerTypePan];//or MLTransitionGestureRecognizerTypeScreenEdgePan +//... +return YES; +} + +``` +