微博列表怎么做

iOSLearn 2012-12-13 01:54:43
像是新浪微博ios客户端的微博列表是怎么做出来的

是用table做的么?

tablecell可以自适应内容高度吗?

谢谢
...全文
175 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
八哥Jerry 2012-12-13
  • 打赏
  • 举报
回复
引用 5 楼 iOSLearn 的回复:
引用 4 楼 luo198828 的回复:可以下个微博的ios客户端源码看看。 下了一个 为什么它的代码是这么写的 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NS……
每个Cell都有这几个属性,是默认的。位置也是固定了的。要不就只有自定义Cell了。
iOSLearn 2012-12-13
  • 打赏
  • 举报
回复
引用 4 楼 luo198828 的回复:
可以下个微博的ios客户端源码看看。
下了一个 为什么它的代码是这么写的 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; // Configure the cell... cell.imageView.image = [self.imageItems objectAtIndex:indexPath.row]; cell.textLabel.text = [self.userNames objectAtIndex:indexPath.row]; cell.detailTextLabel.text = [self.userText objectAtIndex:indexPath.row]; return cell; } cell.imageView.image cell.textLabel.text cell.detailTextLabel.text 这是在设置什么东西
八哥Jerry 2012-12-13
  • 打赏
  • 举报
回复
可以下个微博的ios客户端源码看看。
iOSLearn 2012-12-13
  • 打赏
  • 举报
回复
帮帮忙 大家有没有现成的微博列表关于tablecell的代码
相奇 2012-12-13
  • 打赏
  • 举报
回复
楼上+1. 要自己代码控制
Snake_Jay 2012-12-13
  • 打赏
  • 举报
回复
tableCell 不可以自适应内容高度,内容高度是自己算出来的。

29,028

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧