ios - Why is my UIView drawing behind my other views? -
i have uiview opened , closed button onscreen. positioning on scrollable custom text area bunch of uilabels added uiscrollview.
i've made sure added last in view hierarchy, in xib. have tried calling bringsubviewtofront
, , have removed uiview parent view , re-added after doing layout.
nothing have tried prevents being drawn behind uiscrollview. have verified uiview last uiview in hierarchy looking @ view hierarchy in debugger @ runtime.
the uiview in question, shown smiley in picture here, has children. has 3x3 grid of invisible uibuttons, , uiimageview draw image, other smiley. operating on parent uiview, not children.
is there can try, diagnose this? recap, have done following:
the uiview added last in view hierarchy, after uiscrollview. child of same parent (the root view) scroll view - hence, sibling view of scroll view.
after doing layout, i've tried
[self.view bringsubviewtofront:myview]
after doing layout, i've tried doing
[myview removefromsuperview]
followed[self.view addsubview:myview]
.
the latter 2 operations performed @ end of layout method.
any ideas?
Comments
Post a Comment