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:

  1. self.view.bringsubviewtofront(subview1) not seem work if have reference view in uiviewcontroller, guessing because view buried deep (but i'm not entirely sure)?

  2. 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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -