【发布时间】:2017-02-04 09:39:31
【问题描述】:
我使用 UIView.transition 方法在 2 个视图之间翻转,但之后,两个视图的框架都发生了变化。
if isFront {
UIView.transition(from: frontView, to: behindView, duration: 0.5, options: .transitionFlipFromRight,completion: { (finished) in
if finished {
self.isFront = false
}
})
} else {
UIView .transition(from: behindView, to: frontView, duration: 0.5, options: .transitionFlipFromLeft, completion: { (finished) in
if finished {
self.isFront = true
}
})
}
我怎么了?感谢您的帮助。
【问题讨论】:
标签: ios uiview swift3 uiviewanimationtransition