From 03242a4233b0487fc06ad4d78d2ad4d618c2621a Mon Sep 17 00:00:00 2001 From: Daniel brooks Date: Fri, 15 Feb 2013 16:39:50 -0800 Subject: [PATCH 1/2] Adding awake from nib --- vendor/ZKRevealingTableViewCell.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/vendor/ZKRevealingTableViewCell.m b/vendor/ZKRevealingTableViewCell.m index 6c7a1c7..af5b50c 100644 --- a/vendor/ZKRevealingTableViewCell.m +++ b/vendor/ZKRevealingTableViewCell.m @@ -116,6 +116,24 @@ - (id)initWithCoder:(NSCoder *)aDecoder return self; } + +-(void)awakeFromNib { + self.direction = ZKRevealingTableViewCellDirectionBoth; + self.shouldBounce = YES; + self.pixelsToReveal = 0; + + self._panGesture = [[[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(_pan:)] autorelease]; + self._panGesture.delegate = self; + + [self addGestureRecognizer:self._panGesture]; + + self.contentView.backgroundColor = [UIColor clearColor]; + + UIView *backgroundView = [[[UIView alloc] initWithFrame:self.contentView.frame] autorelease]; + backgroundView.backgroundColor = [UIColor clearColor]; + self.backView = backgroundView; +} + - (void)dealloc { self._panGesture = nil; From f6d30564cfe77cd91beaa259dcf6b973efab5db7 Mon Sep 17 00:00:00 2001 From: Daniel brooks Date: Fri, 15 Feb 2013 16:48:54 -0800 Subject: [PATCH 2/2] Fixing podspec --- ZKRevealingTableViewCell.podspec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ZKRevealingTableViewCell.podspec diff --git a/ZKRevealingTableViewCell.podspec b/ZKRevealingTableViewCell.podspec new file mode 100644 index 0000000..e48ebb1 --- /dev/null +++ b/ZKRevealingTableViewCell.podspec @@ -0,0 +1,14 @@ +Pod::Spec.new do |s| + s.name = 'ZKRevealingTableViewCell' + s.version = '0.0.3' + s.license = 'MIT' + s.summary = 'A Sparrow-style Implementation of Swipe-To-Reveal.' + s.homepage = 'https://github.com/alexzielenski/ZKRevealingTableViewCell' + s.author = { 'Alex Zielenski' => 'support@alexzielenski.com' } + s.source = { :git => 'https://github.com/appbuilder360/ZKRevealingTableViewCell.git', :commit => '03242a4233b0487fc06ad4d78d2ad4d618c2621a' } + s.description = 'A different kind of swipe-to-reveal that pans with your finger and works left and right to reveal a background view.' + s.platform = :ios + s.source_files = 'vendor' + + s.framework = 'QuartzCore' +end