objective-c - XLForm中,如何修改原有类型cell中的空间位置?
为情所困
为情所困 2017-05-02 09:37:14
0
0
744

在Xlform库中,作者已经写好的各种各类的cell,左边的标题控件都是左对齐,右边的控件都是右对齐的。但是我现在需要右边的控件也要左对齐,如下图:

我所用到的cell代码为:

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];

我已经对日期的显示框(detailTextLabel)做了文字颜色的处理,但是我不知道如何对它做位置的设置。请各位大神赐教,谢谢!!

为情所困
为情所困

répondre à tous(0)
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!