Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表格视图,它是在情节提要中创建的。包含在里面的单元格被称为“静态单元格”。
现在,我想在 tableview 的末尾引入一个新部分(即添加一些动态单元格),我不知道该怎么做。
你们中有人知道我该怎么做吗?
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return actualSection+1; }
每当您添加带有更新的新部分actualSection或在数组中添加对象(您用于表)时,请重新加载您的表
actualSection