Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
zrcoder committed Jul 25, 2016
1 parent 0e3a6a2 commit 9c2b9b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Binary file not shown.
7 changes: 0 additions & 7 deletions src/iCards.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ - (void)setUp {
_offset = CGSizeMake(5, 5);
_swipeEnded = YES;
[self addGestureRecognizer:self.panGestureRecognizer];
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(layoutCards) name:UIDeviceOrientationDidChangeNotification object:nil];
}

- (instancetype)initWithCoder:(NSCoder *)coder {
Expand Down Expand Up @@ -288,9 +286,4 @@ - (void)cardSwipedAction:(UIView *)card {
[self layoutCards];
}

- (void)dealloc {
[[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
}

@end

0 comments on commit 9c2b9b7

Please sign in to comment.