From 6cf397a1385f83ec53d917a13a48ad01a265e815 Mon Sep 17 00:00:00 2001 From: Mark Alldritt Date: Sat, 13 Jan 2018 13:12:18 -0800 Subject: [PATCH] Remove addSubview calls from examples --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 4b47235..384ceb1 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ class ViewController: FormViewController { // Construct the view for the cell cell.view = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 200)) cell.view?.backgroundColor = UIColor.orange - cell.contentView.addSubview(cell.view!) } } } @@ -55,7 +54,6 @@ class ViewController: FormViewController { cell.view = nib.instantiate(withOwner: self, options: nil)[0] as? MyView cell.view?.backgroundColor = cell.backgroundColor - cell.contentView.addSubview(cell.view!) } } }