Search code examples
iosiphonexcodeviewuiview

View shows up in Debug View Hierarchy, but NOT on device/sim


This issue is seriously perplexing me. I have a small UIView I'm using to show which button is selected. However, it's not showing up in my app — it should be under "Local Activities," but doesn't show up:

Image

That's fine, I thought, I'll just debug the view hierarchy and see where it is! And it looks like it's exactly where it should be:

View Hierarchy 3D View — it's on top of everything!

Does anyone know what might be going on here? Thanks for the help!


Solution

  • I'm stupid — I fixed it. I'm not sure why it shows up as on top in the view debugger, but it was behind another UIView.