I have two uiviews 1 child and 1 parent parent view has alpha .30 on click of button I want to change alpha of child view to 1.0 or 0.0 is this possible if yes then how.
Please enlighten me on this.
Thanx in advance
🙂
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.
Try with
the alpha property of
UIViewand This value affects only the current view and does not affect any of its embedded subviews.Read the Apple Documentation for
alphainUIView.http://developer.apple.com/library/ios/#documentation/uikit/reference/UIView_Class/UIView/UIView.html
Updated:Try with below