William Falcon
William Falcon

Reputation: 9813

How to reset an object in objective C

I have a model called calculatorModel. Once the entry has been saved from this model, I want to basically reset all the variables in it to either blank, 0, etc... so that the screen will clear up. What is the best way to do this?

Thanks

Upvotes: 1

Views: 1385

Answers (1)

Aaron Brager
Aaron Brager

Reputation: 66234

You can either reset them each individually, or you can deallocate your entire calculatorModel and create a new one.

Upvotes: 4

Related Questions