Created
August 13, 2011 13:06
-
-
Save pier-oliviert/1143829 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)layoutSubviews { | |
| [self.fullNameLabel sizeToFit]; | |
| [self.bioTitleLabel sizeToFit]; | |
| [self.emailLabel sizeToFit]; | |
| self.profilePictureView.frame = CGRectOffset(self.profilePictureView.bounds, 15, 15); | |
| self.fullNameLabel.frame = CGRectOffset(self.fullNameLabel.bounds, CGRectGetMaxX(self.profilePictureView.frame) + 10, | |
| CGRectGetMidY(self.profilePictureView.frame) - 25); | |
| if (self.emailLabel.superview) { | |
| self.emailLabel.frame = CGRectOffset(self.emailLabel.bounds, CGRectGetMinX(self.fullNameLabel.frame), | |
| CGRectGetMaxY(self.fullNameLabel.frame)); | |
| } | |
| self.bioTitleLabel.frame = CGRectOffset(self.bioTitleLabel.bounds, CGRectGetMinX(self.profilePictureView.frame), | |
| CGRectGetMaxY(self.profilePictureView.frame) + 16); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment