From 9ad9e0766920772b76d5b7b8798b94cabb215b10 Mon Sep 17 00:00:00 2001 From: Baris Sencan Date: Wed, 25 Feb 2015 18:47:29 -0800 Subject: [PATCH] Update simple example for 0.2.1 --- Examples/SimpleExample/Cartfile.resolved | 2 +- .../SimpleExample/SimpleExample/ExampleViewController.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/SimpleExample/Cartfile.resolved b/Examples/SimpleExample/Cartfile.resolved index e5375bb..60b7fa5 100644 --- a/Examples/SimpleExample/Cartfile.resolved +++ b/Examples/SimpleExample/Cartfile.resolved @@ -1 +1 @@ -github "isair/ManualLayout" "0.2.0" +github "isair/ManualLayout" "0.2.1" diff --git a/Examples/SimpleExample/SimpleExample/ExampleViewController.swift b/Examples/SimpleExample/SimpleExample/ExampleViewController.swift index 5a2efa0..d328142 100644 --- a/Examples/SimpleExample/SimpleExample/ExampleViewController.swift +++ b/Examples/SimpleExample/SimpleExample/ExampleViewController.swift @@ -39,14 +39,14 @@ internal final class ExampleViewController: UIViewController { override func viewWillLayoutSubviews() { titleLabel.sizeToFit() - titleLabel.top = 40 + titleLabel.top = top + 20 titleLabel.centerX = view.centerX subtitleLabel.sizeToFit() subtitleLabel.top = titleLabel.bottom + 8 subtitleLabel.centerX = view.centerX yinView.top = view.height / 2 yinView.right2 = view.width - yinView.bottom2 = view.height + yinView.bottom2 = bottom } private func generateTextStyle(smaller: Bool = false) -> [NSObject: AnyObject] {