iphone - 可调整大小的 UITableViewCell

标签 iphone objective-c ios uitableview

是否可以创建一个自定义的 UITableViewCell,它根据我要放入的文本的长度调整大小?如果可能,我该怎么做?

最佳答案

@EquinoX 是的,可以通过heightForRowAtIndexPath 委托(delegate)....请查看 this Dynamic Height UITableViewCell 他们有同样的问题。

祝你好运!

关于iphone - 可调整大小的 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5061826/

相关文章:

ios - UIWebView 在 [UIViewAnimationState 发布] : message sent to deallocated instance 随机崩溃

iphone - 如何在 iPhone 中创建自定义时间栏?

iphone - "Application does not run in background"的含义

ios - 自定义 "Pressed"UIBarButtonItem 背景

ios - Xcode 机器人服务器持续集成失败

ios - 减小 pdf 大小 - Objective c

iPhone 应用程序 : Linking to review page

objective-c - Objective C 有哪些有用的工具

ios - 可以将 iPhone 高高抛在空中启动我的应用程序或触发 iOS 7 或更高版本中的所需功能

iphone - 应用程序中有两个目标的命名约定