If I want to erase a subview, is it done when I put mysubview.alpha = 0;?
Or do I have to do anything else?
Thank you!
If I want to erase a subview, is it done when I put mysubview.alpha
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.
To “erase” a subview, just release it 😉 It you put it’s alpha value to 0, it is only hidden.
As said in comment, you also have to remove it from superview (
[myView removeFromSuperview]).