xmartlabs / XLForm

XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
MIT License
5.77k stars 953 forks source link

How to wait the response and then update the value - need to refresh the data in time #1083

Closed MarcSteven closed 3 years ago

MarcSteven commented 3 years ago

I met one weird issue about the framework, I got the data earlier and then update the row, but I found the process of rendering is not done, so how to get the data and update @mats-claassen

MarcSteven commented 3 years ago

@mats-claassen There are lots of similar issue about it , but in the doc cannot find the correct way to update , and in your example project there are no description to update it.

I reviewed your source code and then cannot find the solution.

Render the Cell and then update the data, perhaps the data is from Hardware or network....

MarcSteven commented 3 years ago

@mats-claassen I got the value but cannot display

mats-claassen commented 3 years ago

Hi @MarcSteven I believe you should be able to follow the NativeEventFormViewController example which shows how to use updateFormRow which is a function of XLFormViewController to update a row

MarcSteven commented 3 years ago

@mats-claassen Thank you so much!