2

I have a transparent view with alpha set to 0.3, and behind it there are some views, is there any option in IOS to set some of the views that are behind my transparent view to hidden?

I need when half of the view is behind the transparent, and the other half is not, to show only half of the view

Bassel Shawi
  • 604
  • 4
  • 11
  • 29

2 Answers2

1

you can hide it after making IBOutlet connection

[yourView setHidden:YES];
Rajneesh071
  • 30,846
  • 15
  • 61
  • 74
0

You can set the hidden property of the unwanted views to YES if you want to hide them.

You can set the alpha to 0.

You can also [myView removeFromSuperView] if it makes sense.

tacos_tacos_tacos
  • 10,277
  • 11
  • 73
  • 126