Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed left and right peaking, added protocol to notify left/right on …
…reveal
- Loading branch information
Showing
13 changed files
with
477 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
// | |||
// RNRightViewController.h | |||
// RNSwipeViewController | |||
// | |||
// Created by Ryan Nystrom on 2/22/13. | |||
// Copyright (c) 2013 Ryan Nystrom. All rights reserved. | |||
// | |||
|
|||
#import <UIKit/UIKit.h> | |||
#import "RNRevealViewControllerProtocol.h" | |||
|
|||
@interface RNRightViewController : UIViewController | |||
<RNRevealViewControllerProtocol> | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,56 @@ | |||
// | |||
// RNRightViewController.m | |||
// RNSwipeViewController | |||
// | |||
// Created by Ryan Nystrom on 2/22/13. | |||
// Copyright (c) 2013 Ryan Nystrom. All rights reserved. | |||
// | |||
|
|||
#import "RNRightViewController.h" | |||
#import "UIView+Sizes.h" | |||
|
|||
@interface RNRightViewController () | |||
@property (weak, nonatomic) IBOutlet UIView *animateView; | |||
|
|||
@end | |||
|
|||
@implementation RNRightViewController | |||
|
|||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |||
{ | |||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |||
if (self) { | |||
// Custom initialization | |||
} | |||
return self; | |||
} | |||
|
|||
- (void)viewDidLoad | |||
{ | |||
[super viewDidLoad]; | |||
} | |||
|
|||
- (void)didReceiveMemoryWarning | |||
{ | |||
[super didReceiveMemoryWarning]; | |||
// Dispose of any resources that can be recreated. | |||
} | |||
|
|||
- (void)changedPercentReveal:(NSInteger)percent { | |||
NSLog(@"Right: %i",percent); | |||
|
|||
if (percent == 100) { | |||
[UIView animateWithDuration:0.1f | |||
delay:0 | |||
options:0 | |||
animations:^{ | |||
self.animateView.top = percent - 100; | |||
} | |||
completion:NULL]; | |||
} | |||
else { | |||
self.animateView.top = percent - 100; | |||
} | |||
} | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+5.05 KB
(120%)
...eproj/project.xcworkspace/xcuserdata/curiosity.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
// | |||
// RNRevealViewControllerProtocol.h | |||
// RNSwipeViewController | |||
// | |||
// Created by Ryan Nystrom on 2/22/13. | |||
// Copyright (c) 2013 Ryan Nystrom. All rights reserved. | |||
// | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
@protocol RNRevealViewControllerProtocol <NSObject> | |||
|
|||
- (void)changedPercentReveal:(NSInteger)percent; | |||
|
|||
@end |
Oops, something went wrong.