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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -