From 4e73932393d0e6edc8f39d0eeadb4d09dc32fd4b Mon Sep 17 00:00:00 2001 From: nixzhu Date: Mon, 18 Jan 2016 10:22:42 +0800 Subject: [PATCH] detail --- .../Profile/ProfileViewController.swift | 2 +- Yep/Views/Cells/ProfileFooter/ProfileFooterCell.xib | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Yep/ViewControllers/Profile/ProfileViewController.swift b/Yep/ViewControllers/Profile/ProfileViewController.swift index 73f883b8..b8067970 100644 --- a/Yep/ViewControllers/Profile/ProfileViewController.swift +++ b/Yep/ViewControllers/Profile/ProfileViewController.swift @@ -488,7 +488,7 @@ class ProfileViewController: SegueViewController { let attributes = [NSFontAttributeName: YepConfig.Profile.introductionLabelFont] let labelWidth = self.collectionViewWidth - (YepConfig.Profile.leftEdgeInset + YepConfig.Profile.rightEdgeInset) let rect = self.introductionText.boundingRectWithSize(CGSize(width: labelWidth, height: CGFloat(FLT_MAX)), options: [.UsesLineFragmentOrigin, .UsesFontLeading], attributes:attributes, context:nil) - return 10 + 20 + 10 + 20 + 10 + ceil(rect.height) + 4 + return 10 + 24 + 10 + 18 + 10 + ceil(rect.height) + 4 } private var customNavigationItem: UINavigationItem = UINavigationItem(title: "Details") diff --git a/Yep/Views/Cells/ProfileFooter/ProfileFooterCell.xib b/Yep/Views/Cells/ProfileFooter/ProfileFooterCell.xib index 2925453f..0c9e4eb3 100644 --- a/Yep/Views/Cells/ProfileFooter/ProfileFooterCell.xib +++ b/Yep/Views/Cells/ProfileFooter/ProfileFooterCell.xib @@ -14,21 +14,21 @@