Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed memory leak. GMGridView never gets dealloced because of retain …

…cycle with GMGridViewCell.
  • Loading branch information...
commit 3986f54b32d5ad22338e479489f04e1d5fbf034e 1 parent 611266b
@soleares soleares authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  GMGridView/API/GMGridView.m
View
2  GMGridView/API/GMGridView.m
@@ -1076,7 +1076,7 @@ - (GMGridViewCell *)newItemSubViewForPosition:(NSInteger)position
NSInteger index = [weakSelf positionForItemSubview:aCell];
if (index != GMGV_INVALID_POSITION)
{
- [weakSelf.dataSource GMGridView:self deleteItemAtIndex:index];
+ [weakSelf.dataSource GMGridView:weakSelf deleteItemAtIndex:index];
[weakSelf removeObjectAtIndex:index];
}
};

1 comment on commit 3986f54

@nameislihong

您好!请问我将一个view赋给cell.contentView (cell.contentView = aView),我的View上有个button,但是当我点击button时,并没有响应?

Please sign in to comment.
Something went wrong with that request. Please try again.