Is there a quick way on how to reset all the subviews like textfields, labels etc. to its original state like they are when they get initialized the first time? I guess dealloc and init again would not be the right way?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re thinking that
deallocandinitwould be somewhat useful, why not just invokereleaseand then re-init everything with theallocand appropriateinitcombo?I would probably opt for explicit resetting code, but unless there are a large number of views you are wanting to reset, I don’t think that
release,alloc, andinitwould be all too expensive.