Created
October 23, 2016 10:12
-
-
Save jaemyeong/cce81fb952d0b2f21dc7f8969250dbe4 to your computer and use it in GitHub Desktop.
CALayer 애니메이션 비활성화
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CATransaction.begin() | |
CATransaction.setDisableActions(true) | |
let frame = CGRect(x: 0.0, | |
y: 0.0, | |
width: 300.0, | |
height: 300.0) | |
self.layer.frame = frame | |
CATransaction.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment