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
Post a Comment