Skip to content

Commit

Permalink
removed duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
kgn committed Jan 17, 2013
1 parent bda5c44 commit 65d938c
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,4 @@ - (void)setupCell{
[self.contentView addSubview:self.valueSwitch];
}

- (void)layoutSubviews{
[super layoutSubviews];

CGRect valueSwitchFrame = self.valueSwitch.frame;
valueSwitchFrame.origin.y = (CGFloat)round(CGRectGetMidY(self.contentView.bounds)-CGRectGetMidY(self.valueSwitch.bounds))-InAppSettingsOffsetY;
valueSwitchFrame.origin.x = (CGFloat)round(CGRectGetWidth(self.contentView.bounds)-CGRectGetWidth(self.valueSwitch.bounds))-InAppSettingsCellPadding;
self.valueSwitch.frame = valueSwitchFrame;
}

@end

0 comments on commit 65d938c

Please sign in to comment.