uitable reloadData doesnt represent updated database

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

Answers


Well i dont know if its there in your code, but i dont see where you update the appDelegate.messageArray when you add a message or edit it. If your not doing that then obviously this is the issue.


Need Your Help

Safe way to negate a number of type std::size_t

c++

When I want to negate a number of type std::size_t, I usually do -static_cast<int>(number). However, I understand that the number might not fit into an int. So, my question is what is a safe

UIScrollView Subview Container Incorrectly Changing Frames

objective-c ios uiviewcontroller uiscrollview childviewcontroller

I'm having a problem with ChildViewController views having their frames automatically changed to their parents' frames. I've distilled it to an example project with a single class to illustrate whats

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.