iphone - UITableView 行数

标签 iphone ipad ios uitableview rows

我想知道表格 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/

相关文章:

ipad - UITableView 不响应滚动和触摸

ios - 当我更改时间间隔的值时,如何更新我的 NSTimer

iphone - 通用 iPad 应用程序因无法重现的启动崩溃而被拒绝

ios - "contentSizeForViewInPopover"- 这是做什么的?

ios - 我可以自动创建UIImageView实例吗?

iphone - 更快的 iPhone 图形

ios - ScrollView 打破自动布局尾随和前导空间

iphone - 按日期对提取请求进行排序

android - 让宽网页适合移动设备的宽度

ios - RCTBatchedBridge.m 错误 : Invalid data message - all must be length:%zd. React Native,iOS 模拟器