user3464470
user3464470

Reputation: 23

How can I set transparency of the text box on a table view? (Xcode)

I'm working on a project in Xcode and am trying to add an on/off switch to my table view, but the box used for the text keeps overlapping the on/off controller. I tried changing the font size but the size of the actually box for the text stayed the same. Is there a way to either: Change the size of the text box on the table view Make the text box transparent or Specify the layer of objects on the table view (so I can bring the on/off switch forward)?

Upvotes: 0

Views: 160

Answers (1)

streem
streem

Reputation: 9144

I'm not exactly sure what you really want, to set transparency on a view you can change the alpha property :

textBox.alpha = 0.5;

and to change the frame :

textBox.frame = CGRectMake(originx, originy, width, height);

Hope this helps.

Upvotes: 1

Related Questions