iphone - How do I add or remove rows from UITableView at runtime? -
iphone - How do I add or remove rows from UITableView at runtime? -
i'm sure nooby question, can't figure out. have uitextfield *numberofpointstextbox allows users input integer. want value number of rows in uitableview *mytableview in same view numberofpointstextbox. want user able alter value , have number of cells update accordingly. solution have been able find create "for" loop create nsindexpath each, there must improve solution out there. ideas? in advance!
the number of rows uitableview
displays controlled through uitableviewdatasource
's tableview:numberofrowsinsection:
method. code should hear changes of uitextfield *numberofpointstextbox
, update number of points in custom instance of uitableviewdatasource
have configured uitableview
, , phone call reloaddata
on uitableview
finish update.
iphone objective-c ios uitableview
Comments
Post a Comment