Skip to content
This repository
Browse code

removed duplicate code

  • Loading branch information...
commit 65d938c03419481d3ed475b8962ffe99574ba24c 1 parent bda5c44
David Keegan authored
9  InAppSettings/Cells/InAppSettingsPSToggleSwitchSpecifierCell.m
@@ -79,13 +79,4 @@ - (void)setupCell{
79 79
     [self.contentView addSubview:self.valueSwitch];
80 80
 }
81 81
 
82  
-- (void)layoutSubviews{
83  
-    [super layoutSubviews];
84  
-
85  
-    CGRect valueSwitchFrame = self.valueSwitch.frame;
86  
-    valueSwitchFrame.origin.y = (CGFloat)round(CGRectGetMidY(self.contentView.bounds)-CGRectGetMidY(self.valueSwitch.bounds))-InAppSettingsOffsetY;
87  
-    valueSwitchFrame.origin.x = (CGFloat)round(CGRectGetWidth(self.contentView.bounds)-CGRectGetWidth(self.valueSwitch.bounds))-InAppSettingsCellPadding;
88  
-    self.valueSwitch.frame = valueSwitchFrame;
89  
-}
90  
-
91 82
 @end

0 notes on commit 65d938c

Please sign in to comment.
Something went wrong with that request. Please try again.