Skip to content

Commit

Permalink
Merge pull request #32 from Amztion/master
Browse files Browse the repository at this point in the history
修复在 iOS8 及以下的系统中,关闭 ActionSheet 后旋转屏幕出现的崩溃
  • Loading branch information
Leo authored Apr 13, 2017
2 parents 5799ad1 + b8528f8 commit e334566
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/LCActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ - (instancetype)config:(LCActionSheetConfig *)config {
return self;
}

- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)setupView {
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleDidChangeStatusBarOrientation)
Expand Down

0 comments on commit e334566

Please sign in to comment.