From 14289e9c885629c9ebaf7db7c220d97f6674e822 Mon Sep 17 00:00:00 2001 From: Matt Neuburg Date: Wed, 19 Aug 2015 09:53:17 -0700 Subject: [PATCH] minor formatting --- .../Base.lproj/Main.storyboard | 16 ++++++---------- .../ViewController.swift | 5 ++--- .../ViewController.swift | 1 - 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/bk2ch07p360scrollViewInCode/ch20p570scrollViewInCode/Base.lproj/Main.storyboard b/bk2ch07p360scrollViewInCode/ch20p570scrollViewInCode/Base.lproj/Main.storyboard index 794e99614..377d9c131 100644 --- a/bk2ch07p360scrollViewInCode/ch20p570scrollViewInCode/Base.lproj/Main.storyboard +++ b/bk2ch07p360scrollViewInCode/ch20p570scrollViewInCode/Base.lproj/Main.storyboard @@ -1,13 +1,17 @@ - + - + + + + + @@ -18,12 +22,4 @@ - - - - - - - - diff --git a/bk2ch07p363scrollViewInCode3/ch20p670scrollViewInCode3/ViewController.swift b/bk2ch07p363scrollViewInCode3/ch20p670scrollViewInCode3/ViewController.swift index 942ccc2a6..87eaecd6a 100644 --- a/bk2ch07p363scrollViewInCode3/ch20p670scrollViewInCode3/ViewController.swift +++ b/bk2ch07p363scrollViewInCode3/ch20p670scrollViewInCode3/ViewController.swift @@ -126,8 +126,7 @@ class ViewController : UIViewController { views:["lab":previousLab!])) - // set content view width and frame-to-superview constraints - // (height comes from subview constraints) + // pin content view to scroll view, sized by its subview constraints // content size is calculated for us v.translatesAutoresizingMaskIntoConstraints = false con.extend( @@ -135,7 +134,7 @@ class ViewController : UIViewController { options:[], metrics:nil, views:["v":v])) // * con.extend( NSLayoutConstraint.constraintsWithVisualFormat("H:|[v]|", - options:[], metrics:nil, views:["v":v])) + options:[], metrics:nil, views:["v":v])) // * NSLayoutConstraint.activateConstraints(con) diff --git a/bk2ch07p384dragInScrollView2/ch20p688dragInScrollView/ViewController.swift b/bk2ch07p384dragInScrollView2/ch20p688dragInScrollView/ViewController.swift index cfa56ece9..9f8c0f017 100644 --- a/bk2ch07p384dragInScrollView2/ch20p688dragInScrollView/ViewController.swift +++ b/bk2ch07p384dragInScrollView2/ch20p688dragInScrollView/ViewController.swift @@ -56,7 +56,6 @@ class ViewController : UIViewController, UIGestureRecognizerDelegate { // thanks for the flag, now stop operating altogether g.enabled = false }) - } @IBAction func dragging (p : UIPanGestureRecognizer) {