[英]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.