ios - How do I move UIView to front of ViewController Swift 3? -


i trying build sign page option use phone or email. in order able send server of views have in 1 view controller. trying figure out how can move 1 view front of controller when pressing button.

screenshot 1:

screenshot 2:

this because trying call on class signupview, rather instance of class. bringsubview(tofront:) instance method.

it looks have changed type of view controller's view property signupview, can still access using view, this:

view.bringsubview(tofront: youremailviewinstance) 

note have changed use of emailview in method call. need using property names have assigned instances of views, not class names.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -