I have a UIView at the bottom of my screen. It disappears on rotation.

TrevorYokumTrevorYokum USMember ✭✭

Hello everyone

I'm having an interesting issue that I can't figure out for the life of me. As stated in the title, I have a UIView "bar" at the bottom of my screen and its frame is set in ViewWillLayoutSubviews() and is set to new CGRect(0, this.View.Frame.Bottom - 50, this.View.Frame.Width, 50). Whenever I use this method with any other of my view controllers, it rotates properly and displays properly after rotation. But in this specific view controller, when I rotate the device, the UIView disappears. I even do this.View.BringSubviewToFront(botbar) in order to show it, but it doesn't appear.

Does anyone have any idea why this might be happening?

Sign In or Register to comment.