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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -