views:

115

answers:

0

Hi,

I've encountered a really, really weird behavior mix that I believe has to be a bug, and I'd like to either be enlightened, or work with you guys to find a workaround.

The issue is as follows:

UIView* bigView

UIView* barView

UIView* buttonView
UIView* imagesView

buttonView and imagesView are children of barView, which in turn is a child of bigView. barView's sole purpose is to allow me to swap between buttonView and imagesView with animated effects, and to clip the contents to a small viewport. imagesView is a bit bigger than the viewport of barview.

The system works fantasticly, has been working for weeks...until I tried something. There are 2 buttons in buttonView, which I have been disabling and enabling as the app requires. I decided rather than displaying disabled buttons, I wanted to not display them, and hide them.

So I tried both removing them from the view hierarchy, and using the hidden property. When I use either of them, the barview stop clipping the images view. I don't for the life of me understand how the clipping of barView is related to some visibility or view hierarchy issues of buttonsView.

Can anyone make any sense out of this? Do I need to provide more information? All the code really is as straightforward as it sounds.

Thanks Ryan