2

I have set my status bar hidden in my Application. [application setStatusBarHidden:YES];

I have added an UIView on the window as a subview at 0,0,320,40. But I am not able to get touches on my View ?

But if i am changing the 'Y' position like 0,30,320,40 its working fine.

What is the problem ???

Thanks

Biranchi
  • 16,120
  • 23
  • 124
  • 161

2 Answers2

3

Check isUserInteractionEnabled on the view. Some views, like UIImageView, disable that by default.

drawnonward
  • 53,459
  • 16
  • 107
  • 112
1

check if there is a sub-view blocking it

shreyasva
  • 13,126
  • 25
  • 78
  • 101