Skip to content

Commit

Permalink
Added property for read only access to PECropView's rotation gesture …
Browse files Browse the repository at this point in the history
…recognizer.
  • Loading branch information
dimitar-lazarov committed Jun 26, 2014
1 parent 4c3aa30 commit b097d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/PECropView.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

@property (nonatomic) CGFloat rotationAngle;

@property (nonatomic, weak, readonly) UIRotationGestureRecognizer *rotationGestureRecognizer;

- (void)resetCropRect;
- (void)resetCropRectAnimated:(BOOL)animated;

Expand Down
1 change: 1 addition & 0 deletions Lib/PECropView.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ - (void)commonInit

UIRotationGestureRecognizer *rotationGestureRecognizer = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleRotation:)];
rotationGestureRecognizer.delegate = self;
_rotationGestureRecognizer = rotationGestureRecognizer;
[self.scrollView addGestureRecognizer:rotationGestureRecognizer];

self.cropRectView = [[PECropRectView alloc] init];
Expand Down

0 comments on commit b097d8c

Please sign in to comment.