Skip to content

Commit 6cf397a

Browse files
committed
Remove addSubview calls from examples
1 parent d1ab684 commit 6cf397a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class ViewController: FormViewController {
2727
// Construct the view for the cell
2828
cell.view = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 200))
2929
cell.view?.backgroundColor = UIColor.orange
30-
cell.contentView.addSubview(cell.view!)
3130
}
3231
}
3332
}
@@ -55,7 +54,6 @@ class ViewController: FormViewController {
5554

5655
cell.view = nib.instantiate(withOwner: self, options: nil)[0] as? MyView
5756
cell.view?.backgroundColor = cell.backgroundColor
58-
cell.contentView.addSubview(cell.view!)
5957
}
6058
}
6159
}

0 commit comments

Comments
 (0)