Saturday, 16 March 2013

Add note below table section in iOS

Often I have to add a note at the table section footer but could not remember the code. Here is it...

- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
    // use to display travel time from transitLink
    if (_stop.code == NULL)
        return @"Your station is not served real time yet. Please check back in the future. Thank you very much.";
        return @"";

No comments:

Post a Comment