xmartlabs/XLForm — pull request #42 by wzph (2014-05-30 16:53:36+00:00)
Title: Yield the newly instantiated controller back to the caller, if so desired

This allows XLFormViewController subclasses to override `-(void)didSelectFormRow:(XLFormRowDescriptor *)formRow` and get access to the new controller object. Like this:

```objc
-(void)didSelectFormRow:(XLFormRowDescriptor *)formRow {
UITableViewCell *cell = [formRow cellForFormController:self];
if ( [cell isKindOfClass:[XLFormButtonCell class]] ){
[(XLFormButtonCell *)cell
formDescriptorCellDidSelectedWithFormController:self
yieldingNewController:^(XLFormViewController *newController) {
// do something interesting with newController
}
];
}
else {
[super didSelectFormRow:formRow];
}
}
```