Skip to content

Commit f3033c1

Browse files
committed
Merge pull request lxcid#39 from tonyarnold/master
Remove UIApplicationWillResignActiveNotification on dealloc
2 parents e48c94c + f9dafb6 commit f3033c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
126126
- (void)dealloc {
127127
[self invalidatesScrollTimer];
128128
[self removeObserver:self forKeyPath:kLXCollectionViewKeyPath];
129+
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillResignActiveNotification object:nil];
129130
}
130131

131132
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {

0 commit comments

Comments
 (0)