设置UITableView的基本页脚 [英] Setting a basic footer to a UITableView

查看:61
本文介绍了设置UITableView的基本页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过编程将基本页脚设置为UITableView?

How is a basic footer set to a UITableView programmatically?

只是居中的文字?

如何设置条形颜色并将页脚栏位置固定在屏幕底部,或者如果拇指不填满屏幕,则页脚不在屏幕底部上方.

How can the bar color be set and the footer bar position fixed to the bottom of the screen or if the thumbs dont fill a screen, the footer isnt above the bottom of the screen.

推荐答案

您可以使用UITableViewDataSource回调(仅文本):

You can use UITableViewDataSource callback (just text):

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

或UITableViewDelegate(您喜欢的任何自定义视图):

Or UITableViewDelegate (any custom view you like):

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

这篇关于设置UITableView的基本页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆