 		super.viewDidLoad()
 		// Do any additional setup after loading the view, typically from a nib.
 		
-		self.addMyViews(8, vWidth: 140, vHeight: 180, vSpacing: 10, bCentered: true)
+		self.addMyViews(8, vWidth: 200, vHeight: 200, vSpacing: 10, bCentered: true)
 	}
 
 	override func didReceiveMemoryWarning() {

		var i = 1
		
		while (i < n + 1) {
			
			currRef = "mv\(i)"
			
			v = UINib(nibName: "SampleView", bundle: nil).instantiateWithOwner(nil, options: nil)[0] as! UIView
			v.translatesAutoresizingMaskIntoConstraints = false
			lbl = v.viewWithTag(99) as! UILabel
			lbl.text = "\(i)"
			
			self.theScrollView.addSubview(v)
			
			dViews[currRef] = v
			
			if (prevRef == "") {
				hFmt = "H:|[\(currRef)(width)]"
			} else {
				hFmt = "H:[\(prevRef)]-\(vSpacing)-[\(currRef)(width)]"
			}
			
			self.theScrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(hFmt, options: [], metrics: dMetrics, views: dViews))

			

				
				// Center vertically in scroll view
				
				// first, set the height constraint of out SampleView
				vFmt = "V:[\(currRef)(height)]";
				self.theScrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(vFmt, options: [], metrics: dMetrics, views: dViews))

				// now set the CenterY of out SampleView equal to the CenterY of the ScrollView
				let c = NSLayoutConstraint(
					item: v,
					attribute: NSLayoutAttribute.CenterY,
					relatedBy: NSLayoutRelation.Equal,
					toItem: self.theScrollView,
					attribute: NSLayoutAttribute.CenterY,
					multiplier: 1,
					constant: 0)

				self.theScrollView.addConstraint(c)
				
				
			} else {
				
				// aligned to top of scroll view
				
				// also sets the height constraint
				vFmt = "V:[\(currRef)(height)]"
				self.theScrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(vFmt, options: [], metrics: dMetrics, views: dViews))
				
			}

			// assign the "current SampleView" reference to the "previous" reference
			prevRef = currRef

			i = i + 1
			
		}
		
		// add a "closing" Horizontal constraint, to pin the right edge of the last view to the right-edge of the ScrollView - sort of...
		// because the First added view is pinned to the left, and the Last added view is pinned to the right, the contentSize is "auto-magically" handled
		hFmt = "H:[\(prevRef)]|"
		
		// use this format if you want right / trailing padding
		// hFmt = "H:[\(prevRef)]-\(vSpacing)-|"

		self.theScrollView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat(hFmt, options: [], metrics: dMetrics, views: dViews))
		
	}
