You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that we don't need to render any cell for the collapsed section, this can improve the performance a lot if there are lots of cells in that section.
161
+
Noticed that we don't need to render any cell for the collapsed section, this can improve the performance a lot if there are tons of cells in that section.
158
162
159
163
Next, we use tableView's viewForHeaderInSection function to hook up our custom header:
160
164
@@ -187,15 +191,7 @@ In the above code, we use the plain `UITableViewCell`, if you would like to see
187
191
188
192
#### Step 5. How to Toggle Collapse and Expand ####
189
193
190
-
The idea is really simple, if a section's `collapsed` property is `true`, we set the height of the rows inside that section to be `0`, otherwise `UITableViewAutomaticDimension`!
0 commit comments