How to set the UITableView Section title programmatically (iPhone/iPad)?

前端 未结 8 2116
太阳男子
太阳男子 2020-12-07 10:54

I\'ve created a UITableView in Interface Builder using storyboards. The UITableView is setup with static cells and a numb

8条回答
  •  青春惊慌失措
    2020-12-07 11:48

    Use the UITableViewDataSource method

    - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
    

提交回复
热议问题