Reputation: 2668
How can add some information text ('Please note that...') to the bottom of a uitableviewcell, just like in this image:
Upvotes: 0
Views: 421
Reputation: 535138
What you are looking at in that screen shot is not part of any UITableViewCell. It is the table's footer (a feature of the table). Try making a UILabel containing your desired content and setting it to the table's tableFooterView
.
Upvotes: 2
Reputation: 9382
You should give - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
a try:
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
if (section == 0) {
return @"This text is below the TableView!";
}
return nil;
}
Additional documentation can be found here.
Upvotes: 2