iOS familyNames
2015-09-08 17:03
351 查看
@property (nonatomic,
strong) NSArray *listData;
self.listData = [UIFont
familyNames];
放在表视图里面:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return
self.listData.count;
}
cell.textLabel.text =
self.listData[indexPath.row];
cell.textLabel.font = [UIFont
fontWithName:self.listData[indexPath.row]
size:20];
strong) NSArray *listData;
self.listData = [UIFont
familyNames];
放在表视图里面:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return
self.listData.count;
}
cell.textLabel.text =
self.listData[indexPath.row];
cell.textLabel.font = [UIFont
fontWithName:self.listData[indexPath.row]
size:20];
相关文章推荐
- 苹果IOS开发者账号的区别,企业账号,个人账号,公司团队账号,教育账号
- 使用极光推送做iOS客户端的推送
- iOS事件处理机制
- CocoaPod 对 iOS 版本很敏感
- 斯坦福大学公开课 iOS应用开发教程学习笔记(第四课) Views 视图
- iOS 官网的开发手册
- iOS FMDB存储字典、数组 及获取问题
- iOS推送pem文件制作并附上PHP推送代码
- iOS 本地化字符串—(妖妖随笔)
- iOS应用程序的本地化-(妖妖随笔)
- IOS NSPredicate 查询、搜索
- IOS获取当前手指触摸的点
- ios的单元测试
- iOS原型模式
- 仿IPhone、ios圆角Dialog
- iOS测试-XCTest
- iOS中消息的传递机制
- iOS开发~CocoaPods使用详细说明
- IOS使用Auto Layout中的VFL适配
- 斯坦福大学iOS应用开发教程学习笔记(第二课) 计算器实现2 改进版