首页 > 解决方案 > How do I detect a row I have tapped that was inserted via a MultivaluedSection in Eureka form builder?

问题描述

I can successfully insert TextAreaRow(s) in the MultivaluedSection and each is given a unique name using a string plus the index. I would like to be able to intercept when someone taps on one of these newly inserted rows as I would like to perform some additional actions.

Any help would be greatly appreciated!

Mark

标签: iosswifteureka-forms

解决方案


当有人点击这些新插入的行之一时,我希望能够拦截,因为我想执行一些额外的操作。

根据文档,尤里卡有回调onCellSelection()

每次用户点击该行并被选中时调用。

基本上,您需要在此回调中描述您的更改:

AnyRowYouWant { row in
    // init the row
}.onCellSelection { cell, row in
    // handle tap right here
}

推荐阅读