I use
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section { if ( section == 0 ) { return NSLocalizedString(@"Section_0_text", @""); } if ( section == 1 ) { return NSLocalizedString(@"Section_1_text",""); } return nil; }
Can I change the font, color, and other properties of the text of the return line?
Take a look at the class UITableViewDelegate, in particular the methods tableView:viewForFooterInSection:and the tableView: heightForFooterInSection: . You can return any view you want, including but not limited to - a UILabelwith any text properties you want.
UITableViewDelegate
tableView:viewForFooterInSection:
UILabel
Use the following to return your own view with custom text color, etc.
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
, willi, , - . UILabel, , . , Apple API docs .
. , (, UILabel ) Tableview: viewForFooterInSection: .
Source: https://habr.com/ru/post/1720620/More articles:Is it possible to automate taking screenshots of part of a web page (for example, indicated by CSS selector or parent HTML element)? - javascriptHow to prevent database changes inside Rails ActiveRecord before the before_create filter when rolling back when it returns false? - ruby-on-railsRaw exception logger for nonASP.NET applications? (ELMAH for console applications) - c #ActiveRecord named_scope, .scopes - scopehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1720619/setting-canvas-to-a-control-template&usg=ALkJrhgeXxP-YuW7pBCTk3jH3kmD7ROVigIs there a jQuery jEditable Multi-select plugin? - jqueryUITabBarController image masking effect - iphonemod_rewrite passing variables - phpSuggested Indexes for MPTT Table - sqlprocessing of amorphous subsystems in formal software - language-agnosticAll Articles