Skip to content

Commit

Permalink
Merge pull request #18 from AJMiller/master
Browse files Browse the repository at this point in the history
Update ZKRevealingTableViewCell to remove autorelease and [super dealloc] calls
  • Loading branch information
alexzielenski committed Feb 3, 2014
2 parents d63640c + 9130ff3 commit a7cb705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vendor/ZKRevealingTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ @implementation ZKRevealingTableViewCell

#pragma mark - Lifecycle


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
Expand All @@ -79,7 +80,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
self.shouldBounce = YES;
self.pixelsToReveal = 0;

self._panGesture = [[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_pan:)] autorelease];
self._panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_pan:)];
self._panGesture.delegate = self;

[self addGestureRecognizer:self._panGesture];
Expand All @@ -97,7 +98,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder
self.shouldBounce = YES;
self.pixelsToReveal = 0;

self._panGesture = [[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_pan:)] autorelease];
self._panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_pan:)];
self._panGesture.delegate = self;

[self addGestureRecognizer:self._panGesture];
Expand All @@ -110,7 +111,6 @@ - (id)initWithCoder:(NSCoder *)aDecoder
- (void)dealloc
{
self._panGesture = nil;
[super dealloc];
}

#pragma mark - Accessors
Expand Down

0 comments on commit a7cb705

Please sign in to comment.