iOS XLForm框架

1、初步了解

XLForm框架学习修改笔记第一篇

2、使用案例(重点)

iOS 复杂表单 使用XLForm实现, 及其他方法简介
iOS开发之XLForm的使用

3、细节总结

XLForm使用过程中的坑

4、亲测注意
1、多行文本输入的表格,要选择rowType:XLFormRowDescriptorTypeTextView
2、设置rowType:XLFormRowDescriptorTypeBooleanSwitch
   默认打开:row.value=@1;
  设置rowType:XLFormRowDescriptorTypeBooleanSwitch
   默认打开:row.value=@0;
3、实现XLForm代理方法,实时检测表单的值
   #pragma mark XLFormDescriptorDelegate
   -(void)formRowDescriptorValueHasChanged:(XLFormRowDescriptor *)rowDescriptor oldValue:(id)oldValue newValue:(id)newValue{
    // super implmentation MUST be called
     NSLog(@"%@",row1.value);
     NSLog(@"%@",row2.value);
     NSLog(@"%@",row3.value);
     NSLog(@"%@",row4.value);
    [super formRowDescriptorValueHasChanged:rowDescriptor oldValue:oldValue newValue:newValue];
    
}
5、自定义row
1、rowType:XLFormRowDescriporTypeLSXBtn
   #import "LSXXlformBtnCell.h"
   row = [XLFormRowDescriptor formRowDescriptorWithTag:@"area" rowType:XLFormRowDescriporTypeLSXBtn title:@"所在地区:"];
    
    row.value=@"请选择位置";
    row.action.viewControllerClass=nil;
    __block typeof(self) bself = self;
    row.action.formBlock=^(XLFormRowDescriptor * sender){
        [bself.pickerView show];
    //sender.detailTextLabel.textColor=[UIColor colorWithMacHexString:@"#C7C7CD"];
    };
    [section addFormRow:row];
6、Demo
XLFormDemo

你可能感兴趣的:(iOS XLForm框架)