Skip to content

Commit

Permalink
Cleaning up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
CEWendel committed Oct 7, 2013
1 parent afa6056 commit c3dfadd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SWTableViewCell/SWTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c3dfadd

Please sign in to comment.