jar*_*ryd 7 iphone uitableview
如何以编程方式将基本页脚设置为UITableView?
只是一个居中的文字?
编辑:
如何设置条形颜色并将页脚条位置固定在屏幕底部,或者如果大拇指没有填满屏幕,则页脚不在屏幕底部上方.

Nic*_*ran 10
viewForFooterInSection设置节的页脚.要设置表格的页脚,您需要设置
self.tableView.tableFooterView = myCustomFooterView
Run Code Online (Sandbox Code Playgroud)
myCustomFooterView是你在别处设置的地方.你可能在viewDidLoad中设置它.
您可以使用UITableViewDataSource回调(只是文本):
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section
Run Code Online (Sandbox Code Playgroud)
或UITableViewDelegate(您喜欢的任何自定义视图):
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12173 次 |
| 最近记录: |