Skip to content

Commit

Permalink
pod 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
molon committed Mar 18, 2016
1 parent e55d5a1 commit 5ecfd16
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 4 deletions.
45 changes: 45 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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

Binary file not shown.
10 changes: 7 additions & 3 deletions Example/MLTransitionNavigationController/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion MLTransition.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
```

0 comments on commit 5ecfd16

Please sign in to comment.