From c3dfaddb229824626ea3e70f28ec6056f6b78e9f Mon Sep 17 00:00:00 2001 From: Chris Wendel Date: Mon, 7 Oct 2013 17:10:42 -0400 Subject: [PATCH] Cleaning up a bit --- SWTableViewCell/SWTableViewCell.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SWTableViewCell/SWTableViewCell.m b/SWTableViewCell/SWTableViewCell.m index 45c71571..132fd439 100644 --- a/SWTableViewCell/SWTableViewCell.m +++ b/SWTableViewCell/SWTableViewCell.m @@ -81,10 +81,10 @@ - (CGFloat)utilityButtonsWidth { - (void)populateUtilityButtons { NSUInteger utilityButtonsCounter = 0; - for (UIButton *utilityButton in self.utilityButtons) { + for (UIButton *utilityButton in _utilityButtons) { CGFloat utilityButtonXCord = 0; - if (utilityButtonsCounter >= 1) utilityButtonXCord = self.utilityButtonWidth * utilityButtonsCounter; - [utilityButton setFrame:CGRectMake(utilityButtonXCord, 0, self.utilityButtonWidth, CGRectGetHeight(self.bounds))]; + if (utilityButtonsCounter >= 1) utilityButtonXCord = _utilityButtonWidth * utilityButtonsCounter; + [utilityButton setFrame:CGRectMake(utilityButtonXCord, 0, _utilityButtonWidth, CGRectGetHeight(self.bounds))]; [utilityButton setTag:utilityButtonsCounter]; [utilityButton addTarget:self.parentCell action:self.utilityButtonSelector forControlEvents:UIControlEventTouchDown]; [self addSubview: utilityButton];