You can clone with
HTTPS or Subversion.
the method should retain the cell before removing it from cells and the autorelease it just before returning it. Proposed solution:
I was running into issues with this also
- (AQGridViewCell *) dequeueReusableCellWithIdentifier: (NSString *) reuseIdentifier
NSMutableSet * cells = [_reusableGridCells objectForKey: reuseIdentifier];
AQGridViewCell * cell = [cells anyObject];
if ( cell == nil )
return ( nil );
/* Added the line below so that a cell doesn't get released IMMEDIATELY after it is removed */
[[cell retain] autorelease];
[cells removeObject: cell];
return ( cell );
We are seeing problems which strongly appear that they are related to this.
Maybe this isn't a problem with ARC? I'm not using ARC and I don't think venkatd is either. What about you claybridges?
Same, we are not ARC.
Not using ARC either.
I am not using ARC and ran into this issue, which led to random crashes that were hard to debug. Everything worked when I got rid of the dequeueReusableCellWithIdentifier call.
@evadne Are you saying that AQGridView, which is itself fully ARC, cannot be used in a mixed ARC/non-ARC project?
My problems were from using the 1.3 CocoaPod version (which is all ARC; -fobjc-arc added automatically from s.requires_arc = true) in our primarily non-ARC app.
s.requires_arc = true