Rectangle 27 0

ios Hide a UIView behindbelow other UIView and show from that view?


TransitionNone
TransitionFlipFromLeft
TransitionFlipFromRight
TransitionCurlUp
TransitionCurlDown
TransitionCrossDissolve
TransitionFlipFromTop
TransitionFlipFromBottom
UIView.transitionFromView(View1, toView: View2, duration: .3, options: UIViewAnimationOptions.TransitionFlipFromLeft, completion: nil)
View1.hidden = true
theSuperView.bringSubviewToFront(View2)

Another simple solution would be to just hide View1

Not exactly a lot of information to go on here. The simplest solution would be to just bring View2 to the front. theSuperView here is the view that holds both View1 andView2`

There are better experiences for a user though. Transitioning to the view with an animation would be much better for this type of instance.

There is a large amount of things you can put into the options parameter here, including:

Note