ios - 如何构造uiview以显示类似于Instagram的用户评论

标签 ios objective-c iphone

我很好奇构建 View 以显示类似于 Instagram 的用户评论的最佳方式。 http://imgur.com/lDSRAPs

我最好的猜测是它是一个表格 View ,从后端加载每个用户评论。如果是这样,如何添加“点击更多评论”功能?

最佳答案

是的,你是对的,你可以使用这样的方案:

enter image description here enter image description here

当然要正确设置:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

返回所需的单元格。 当用户点击更多评论按钮时,只需标记它、删除该行并添加新的评论行。

关于ios - 如何构造uiview以显示类似于Instagram的用户评论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25926173/

相关文章:

cocoa-touch - 如何在 Xcode 4 中将数据模型转换为版本化数据模型?

ios - TFHpple解析链接

objective-c - 从 View 中删除 UILabel 的问题

objective-c - 这是一个明智的 Objective-C block 实现吗?

iphone - 如何从 UIView 的子类推送 View Controller

ios - NSDictionary 与 Swift 2 中的文件内容

ios - 如何获取子类中UIButton的默认突出显示颜色/状态?

ios - 移除移动的 GMSPolyline 线段

iPhone 应用程序 : MPMoviePlayer: PlayVideo in Landscape mode only

iphone - 在使用 CGContext 绘制的 UIImage 中获取触摸