iphone - UITableViewCell 具有 2 种附件类型

标签 iphone uitableview accessorytype

我想制作一个带有一个标签和两种附件类型的 UITableViewCell:

  • 未选定的单元格应显示 UITableViewCellAccessoryDe​​tailDisclosureButton 附件。
  • 所选单元格应同时显示 UITableViewCellAccessoryDisclosureIndicatorUITableViewCellAccessoryDe​​tailDisclosureButton 附件。

我知道如何执行此操作的唯一方法是使用所选单元格的辅助 View 的图像。有其他方法可以做到这一点吗?

最佳答案

制作自定义UITableViewCell(在线以及the documentation中有大量教程和示例)。

关于iphone - UITableViewCell 具有 2 种附件类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6299133/

相关文章:

ios - UITableViewCell 图像从 url 加载

ios - 如何在自定义单元格中设置详细附件类型

iphone - 如何向 RootViewController 发送数据

ios - 将 UIRefreshControl 替换为 UIImageView

ios - 使用 Storyboard 和 SASlideMenu 保存(存储) View Controller 内容

ios - UITableViewCell - 每个部分勾选一行

ios - 使附件类型成为所选单元格的复选标记

iphone - UIImagePicker - iPhone 应用程序中出现白色方框

iphone - Xcode 4/LLVM 3.0——让它更智能地处理 "no known instance method for selector"错误?

ios - tableview按钮点击需要在ios中使用pickerview