XLForms中未触发事件

Jus*_*ain 5 ios objective-c-blocks xlform

我正在使用XLForms构建iOS应用程序.我遇到了获取动作事件的问题.我已经尝试了两种block,formSelector但我没有得到这些事件.

这是我的代码:

 XLFormRowDescriptor * buttonRow = [XLFormRowDescriptor formRowDescriptorWithTag:@"button" rowType:XLFormRowDescriptorTypeButton title:@"Button"];
 [buttonRow.cellConfig setObject:[UIColor colorWithRed:0.0 green:122.0/255.0 blue:1.0 alpha:1.0] forKey:@"textLabel.textColor"];
 buttonRow.action.formSelector = @selector(didTouchURLButton:);
 [section addFormRow:buttonRow];
Run Code Online (Sandbox Code Playgroud)

我没有问题编译/运行示例应用程序.我无法弄清楚有什么区别.我没有使用Cocoa Pods,而是将代码插入到项目中.

几乎看起来代表没有正确设置,但即使我打电话self.form.delegate = self,我仍然没有得到事件.

有任何想法吗?

Jus*_*ain 0

问题是我有另一种方法首先获取事件:

 -(void)didTouchButton:(XLFormRowDescriptor *)sender
{
     [self deselectFormRow:sender];
}
Run Code Online (Sandbox Code Playgroud)