diff --git a/SWTableViewCell/PodFiles/SWTableViewCell.m b/SWTableViewCell/PodFiles/SWTableViewCell.m index 3daceac..89aa0ec 100644 --- a/SWTableViewCell/PodFiles/SWTableViewCell.m +++ b/SWTableViewCell/PodFiles/SWTableViewCell.m @@ -301,8 +301,16 @@ - (void)didMoveToSuperview - (void)layoutSubviews { - [super layoutSubviews]; - + + BOOL isPad = [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad; + if (isPad == YES) { + layoutUpdating = YES; + [super layoutSubviews]; + layoutUpdating = NO; + } else { + [super layoutSubviews]; + } + // Offset the contentView origin so that it appears correctly w/rt the enclosing scroll view (to which we moved it). CGRect frame = self.contentView.frame; frame.origin.x = [self leftUtilityButtonsWidth];