我想自定义 UITableViewCell 的附件 View ,所以我需要一个 UIImage。 我希望该图像像“添加联系人”类型按钮(蓝色加号)。
我怎样才能做到这一点?
最佳答案
您可以通过使用 UIButtonTypeContactAdd
类型创建 UIButton
并将其添加为单元格的 accessoryView
来实现此目的。
UIButton contactAddButton = [UIButton buttonWithType:UIButtonTypeContactAdd];
cell.accessoryView = contactAddButton;
关于iphone - iOS 5 - 获取图像,如添加联系人按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8826258/