File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ internal final class ExampleViewController: UIViewController {
4747 string : " Hello World!" ,
4848 attributes : generateTextStyle ())
4949 subtitleLabel.attributedText = NSAttributedString (
50- string : " " ,
50+ string : " Lorem ipsum dolor sit amet, consectetur adipiscing elit. " ,
5151 attributes : generateTextStyle (smaller : true )
5252 yinView.backgroundColor = UIColor.blackColor ()
5353 }
@@ -61,6 +61,7 @@ internal final class ExampleViewController: UIViewController {
6161 view.backgroundColor = UIColor.whiteColor ()
6262 view.addSubview (titleLabel)
6363 view.addSubview (subtitleLabel)
64+ view.addSubview (yinView)
6465 }
6566
6667 override func viewWillLayoutSubviews () {
@@ -71,7 +72,7 @@ internal final class ExampleViewController: UIViewController {
7172 subtitleLabel.top = titleLabel.bottom + 8
7273 subtitleLabel.centerX = view.centerX
7374 yinView.top = view.height / 2
74- yinView.bottom2 = 0
75+ yinView.bottom2 = view. height
7576 }
7677
7778 private func generateTextStyle (smaller : Bool = false ) -> [NSObject: AnyObject ] {
You can’t perform that action at this time.
0 commit comments