search

Home  >  Q&A  >  body text

Objective-c - How to modify the spatial position in the original type of cell in XLForm?

In the Xlform library, the author has written various types of cells. The title controls on the left are all left-aligned, and the controls on the right are right-aligned. But now I need the controls on the right to be left aligned, as shown below:

The cell code I used is:

row = [XLFormRowDescriptor formRowDescriptorWithTag:kBirthday rowType:XLFormRowDescriptorTypeDate title:@"生日"];

    [row.cellConfig setObject:[UIColor blackColor] forKey:@"detailTextLabel.textColor"];
    row.value = [NSDate intervalToDate:userInfo.birthday.floatValue/1000 format:@"yyyy-MM-dd"];
    [section addFormRow:row];

I have processed the text color of the date display box (detailTextLabel), but I don’t know how to set its position. Please enlighten me, thank you! !

为情所困为情所困2771 days ago790

reply all(0)I'll reply

No reply
  • Cancelreply