ios - Bring a subview of a UITableViewCell to the very front -
i have uitextfield within container view in uitableviewcell. want bring container front when text field tapped. clarify: added subview "mask" background when text field tapped, text field showing. having trouble methods i've tried:
self.view.bringsubviewtofront(subview1)not seem work if have reference view inuiviewcontroller, guessing because view buried deep (but i'm not entirely sure)?self.view.insertsubview(subview1, abovesubview: maskbackgroundview)bring subview front, screws constraints set on subview.
you should using view.hidden property control look, rather shifting order. view.hidden = true hides view, while false displays it.
Comments
Post a Comment