![](/img/trans.png)
[英]Bringing a UITableViewCell child UIImageView to front while animating
[英]Bring UIImageView to front while animating
UIView.animateWithDuration(3, animations:{
self.view.bringSubViewToFront(self.squares[moveInfo.start.0][moveInfo.start.1].occupyingPieceImageView)
self.squares[moveInfo.start.0][moveInfo.start.1].occupyingPieceImageView.frame =
self.squares[moveInfo.end.0][moveInfo.end.1].frame
}
如果piece
是您要位于其兄弟姐妹前面的UIImageView
,请使用:
piece.superview?.bringSubviewToFront(piece)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.