I have a table view that can add and delete cells. I only want the user to be able to add one of each cell. (one of each, i mean i have buttons and i only want the user to press the button once). Is there a way to test if my table view has a certain cell in it?
Thank You in Advance!
Depends on what your model is. Usually it's an array or a similar ordered collection. So just loop through it and check. Keep in mind the MVC architecture, views don't own data so anything you want to store and keep a record of should be in the model.
Depends on what your model is. Usually it's an array or a similar ordered collection. So just loop through it and check. Keep in mind the MVC architecture, views don't own data so anything you want to store and keep a record of should be in the model.
Oh okay so i add my content to an NSMutableArray, so in a sense, i could just check to see if the array has like certain text? Thanks