开发者

Appcelerator. Update table with JSON data without refresh

开发者 https://www.devze.com 2023-03-19 07:15 出处:网络
I am developing an iOS app using Appcelerator. I got a table on one window which contains six sections. Every section contains one or more items (rows).

I am developing an iOS app using Appcelerator. I got a table on one window which contains six sections. Every section contains one or more items (rows).

When a user clicks a row she is forwarded to another window where she can edit the item. I then would like to update that row in the table without reloading the table completely.

The JSON object for the row is sent to the edit page where it is updated with the latest details and then sent back to 开发者_如何学JAVAthe first window where it updates the old object.

The problem I am facing now is how to "refresh" the table. I am using sections.

This is the code for the first window: http://pastie.org/2189569

This is the code for the second window: http://pastie.org/2189592

Do anyone know of a better way or a way to solve this problem?

Thankful for all input!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号