swift3 怎么给static cells的label赋值

swift3 怎么给static cells的label赋值,第1张

要么Xib中拖控件

要么代码:let label = UILabel()

label.frame = CGRectMake(0,0,10,10)

label.text = ""

label.textColor = UIColor.BlackColor

view.addSubView(label)

XIB里没试过,不过用代码肯定是可以的,用这个方法:- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11429492.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-16
下一篇 2023-05-16

发表评论

登录后才能评论

评论列表(0条)

保存