0

I have a testviewcontroller which contains a UItableview based somewhat on the uitable sqlite tutorial on the net. Question that i have is when i create a new object via the appdelegate which is inserted into the database with no issues the table rows do not get updated. They will only update after the application is restarted.

This is the addNewMessageViewController which displays the form to add new items to the database - its here i would expect that after it adds the item it updates TestViewController's tabledata. Im sure it is being updated but some reason unknown to me it only refreshes the data when the app is started

4

1 回答 1

0

好吧,我不知道它是否在您的代码中,但是appDelegate.messageArray当您添加消息或编辑它时,我看不到您在哪里更新。如果您不这样做,那么显然这就是问题所在。

于 2012-09-07T20:36:21.963 回答