1

I want a pop up in my app. In the simulator the pop up is working fine and the background color of the view is also transparent.

But I don't know why I am not getting the transparent color in the device. In the device the background is completely black.

Here is what I have done in pop up screen:

self.view.backgroundColor = [[UIColor blackColor]colorWithAlphaComponent:0.5];  

Kindly help. Please explain why I am not getting in the device

Thanks

Mihir Oza
  • 2,768
  • 3
  • 35
  • 61
Akshara
  • 141
  • 1
  • 11
  • Try this : ' UIColor *transBlack = [[UIColor blackColor] colorWithAlphaComponent:0.5f]; self.view.backgroundColorr = transBlack.CGColor; ' – Mihir Oza Dec 17 '15 at 05:06
  • I searched in google regarding this.. And I already tried it.. But it didn't work in my case – Akshara Dec 17 '15 at 10:40

0 Answers0