From 6f6932660005d420dee4fa61eeeac527fe44cc62 Mon Sep 17 00:00:00 2001 From: Yong Su Date: Tue, 31 May 2016 07:59:18 -0700 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0dcedd0..cff3426 100644 --- a/README.md +++ b/README.md @@ -56,11 +56,12 @@ class CollapsibleTableViewHeader: UITableViewCell { By creating a prototype cell and subclassing UITableViewCell, we have the following benefits: * We can visually design the custom header -* We shouldn't need to create a nib and register it to the the tableView like the following, personally I don't like having a nib in my project and if we use `dequeueReusableHeaderFooterViewWithIdentifier`, seems like we can't have 0 rows in that section dynamically: +* We shouldn't need to create a nib and register it to the the tableView like so: ```swift let nib = UINib(nibName: "TableSectionHeader", bundle: nil) tableView.registerNib(nib, forHeaderFooterViewReuseIdentifier: "TableSectionHeader") ``` +personally I don't like having a nibs in my project and if we use `dequeueReusableHeaderFooterViewWithIdentifier`, seems like we must have at least 1 row in that section, but we need to have 0 row! #### Step 3. The UITableViewDelegate ####