I’m using UILabel to hold some text. What I want is to make UILabel background with alpha of 0.4 but not the text. How to achieve this ?
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.
Select your label in Interface Builder. In the Attributes Inspector, find “Background” under the “View” section. Click on the color rectangle next to the color name. Opacity is one of the properties you can set in the window that pops up. Set that to 40%.