StoryBoard学习3 tableview实现
来源:互联网 发布:马来西亚第二家园 知乎 编辑:程序博客网 时间:2024/05/19 17:04
例外一个模版cell:(压缩包中 3.jpg)
4、实现如下代码:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
if (indexPath.section == 0) {
MessageSection0TableViewCell *cell = (MessageSection0TableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"message_section0"]; //直接通过标饰获取cell
cell.NotifiLb.text = notifArr[indexPath.row];
return cell;
}
if (indexPath.section == 1) {
MessageSection1TableViewCell *cell = (MessageSection1TableViewCell *)[tableView dequeueReusableCellWithIdentifier:@"message_section1"];
FriendObj *obj = friendsArr[indexPath.row];
cell.NameLb.text = obj.f_name;
cell.introLb.text = obj.f_intro;
cell.HeaderIView.image = [UIImage imageNamed:@"icon_100"];
return cell;
}
return nil;
}
- StoryBoard学习3 tableview实现
- storyboard创建tableview
- Storyboard imageview 加tableview
- storyboard tableview section
- StoryBoard学习1 tabbar实现
- StoryBoard学习2 兼容性实现
- storyboard使用及tableview示例
- Storyboard学习五(简单注册页面实现)
- 学习storyboard
- 学习storyboard
- StoryBoard学习
- Cocos2dx学习之---TableView实现二级菜单
- iOS学习笔记--tableView多选实现
- 3d tableView 效果实现
- IOS的storyboard编程之 TableView
- iOS storyboard 任意使用static tableView
- tableView - 自定义等高cell-storyBoard方式
- iOS storyboard tableview 内容下移64 解决
- python 发送邮件
- [Leetcode]Missing Ranges
- hdu4415 贪心好题
- testlink安装全攻略
- poi_科学计数法
- StoryBoard学习3 tableview实现
- 字符串匹配的KMP算法
- 我的openwrt学习笔记(二十七)MT7688 NVRAM操作
- MyEclipse安装后需要进行的配置
- hdu 1533 Going Home 费用流MCMF模板
- Android 常用API
- StoryBoad学习4 圆角的实现
- cookie 和session 的区别详解
- jquery获取select选择的文本与值