我想知道表格 View 的行宽是多少,UITableViewCell 文本标签的字体是什么,有人可以帮我吗?
最佳答案
NSLog(@"width: %f", cell.frame.size.width);
NSLog(@"font: %@", cell.textLabel.font);
使用“经典” TableView 记录以下内容:
width: 320.000000
font: font-family: "Helvetica"; font-weight: bold; font-style: normal; font-size: 20px
关于iphone - UITableView 行数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4899299/