如何添加带图像的自定义单元格?

时间:2015-12-02 23:13:57

标签: ios xlform

我是xlform的新手。我知道已经有很多模板单元格。有没有一种简单的方法可以将自定义单元格添加到行中?例如,我用usercell创建了图像,我想将这个单元格添加到第一部分。有什么更好的方法呢?

enter image description here

这是我的代码:

XLFormDescriptor * form;
XLFormSectionDescriptor * section;
XLFormRowDescriptor * row;

form = [XLFormDescriptor formDescriptorWithTitle:@"Settings"];

// First section
section = [XLFormSectionDescriptor formSectionWithTitle:@"Account"];
[form addFormSection:section];

// User image
row = [[XLFormRowDescriptor alloc] init];
[section addFormRow:row];
// Is there  a way to hook the customized UserCell with row together here?

我为此创建了一个UserCell,但是如何将自定义单元格添加到此行?

非常感谢任何帮助和建议。

0 个答案:

没有答案
相关问题