Insanely basic UITableView & saving/loading data inquiry

Very sorry for the basic question but I've seen this implemented in so many (disparate) ways that I'm not certain what the accepted method might be.

All I want is an app that records a list of words. The words should be displayed in a UITableView. The user can add/delete words. The words should be stored in a local file (plist, xml, etc. - the on-disk format really doesn't matter to me).

Would someone kindly suggest a canonical application structure for this simple setup?

Thank you in advance, MP

Answers


You can have an NSMutableArray and store NSStrings in it. NSMutableArray supports inserting, adding, removing, reordering objects. You then look at the "Inserting and Deleting Rows and Sections" of the Table View Programming Guide, implement the right methods and update your NSMutableArray based model accordingly.


Need Your Help

Run SQL pre-defined function stored in table

sql sql-server sql-server-2008

I have a table which stores a SQL predefined function, like CONVERT(VARCHAR(10), '2012-08-21 00:16:41.993', 101) in a row/column. While retrieving the result from table, it should run the function ...

How can I write to a CSV without getting a Unicode Error?

python csv unicode

I've seen many examples of this issue, but haven't yet found a straightforward solution that's worked for me. I still receive the error:

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.