ios - Add button over subview which is again over a superview -


i have uiviewcontroller main view , have added subview called "supporteview". adding button programmatically on supportview. buttons not visible due reason , when load buttons on main view able see buttons.

[self.view addsubview:self.supportview]; [self.view bringsubviewtofront:self.supportview]; [self.supportview addsubview:self.btn]; [self.supportview bringsubviewtofront:self.button];

i have added slider in supportview , loading buttons.

try add button 1st supportview add supportview view. can use view inspector see button https://www.raywenderlich.com/98356/view-debugging-in-xcode-6

this check frame , constraint @ runtime


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -