Permalink
Browse files

Merge Zoul's changes for delegate crashing.. fixes #134.

  • Loading branch information...
2 parents 38e953d + 4d02d22 commit 3e5a4e20c452a31753815f3b5179a39d79f43629 @kolinkrewinkel committed Apr 30, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 KKGridView/KKGridView.h
  2. +1 −0 KKGridView/KKGridView.m
View
@@ -79,7 +79,7 @@ typedef enum {
#pragma mark - Data Source and Delegate
@property (nonatomic, kk_weak) IBOutlet id <KKGridViewDataSource> dataSource;
-@property (nonatomic, kk_weak) IBOutlet id <KKGridViewDelegate> delegate;
+@property (nonatomic, assign) IBOutlet id <KKGridViewDelegate> delegate;
#pragma mark - Getters
View
@@ -1622,6 +1622,7 @@ + (void)animateIf:(BOOL)animated delay:(NSTimeInterval)delay options:(UIViewAnim
- (void)dealloc
{
+ [super setDelegate:nil];
[self removeObserver:self forKeyPath:@"contentOffset"];
[self removeObserver:self forKeyPath:@"tracking"];
[self removeGestureRecognizer:_selectionRecognizer];

0 comments on commit 3e5a4e2

Please sign in to comment.