uitableview - Display a tableviewcell before it has data -
sorry tittle i´m new , i´m trying understand things, far understand, tableview loads data wich distributed cells (dynamic) in way/design developer wants , keeping in mind model object.
i know strange issue have been struggling trying inverse:
1 - tableview loads cells textfields on them.
2 - user fills textfields.
3 - user presses save, , saved in core data.
4 - tableview has editing mode, user possibility of inserting more cells, , process repeats itself.
so want kind of form, tableview loads cells @ first (so there no data yet, , user see fill :) ) , textfields filled result in data. in view did load, have array initiating nothing...i´m saying because see lot of examples , start kind of data a, b, c etc...or colors...and understand it´s example don´t want initiate data.
my question is, possible? missing?
thank you, regards.
not strange @ all, , can that. after all, isn't contacts app is? if have no contacts, can make one. see? bunch of empty field can fill in.
you can implement without core data, or can core data.
and have looked @ apple's basic core recipes example? isn't it's about? starts no recipes. add some.
what missing?
i don't know. don't know? understand how customize table's uitableviewcells? understand uitextfield , how works? make table view cells contains uitextfields , use text field delegate learn user doing.
by incredible coincidence, i've got code can download, describe ("peoplelister"). starts empty. here's interface after user has added groups , people:
see how user can click + button make new blank person (two empty text fields) , can fill in first , last name. isn't you're describing?
here's version without core data:
https://github.com/mattneub/programming-ios-book-examples/tree/master/ch36p901peoplegroups
and here's version core data:
https://github.com/mattneub/programming-ios-book-examples/tree/master/ch36p901peoplegroups2
here's section of book introduce how work text field in table view cell:
http://www.apeth.com/iosbook/ch21.html#_editable_content_in_table_items
here's discussion of peoplelister example:
http://www.apeth.com/iosbook/ch36.html#_the_document_architecture
Comments
Post a Comment