while studying Core Animation, I've made a UIView category which makes a subview be broken into a lot of tiles and diffused. https://github.com/minorblend/HNTileDisappear However, when the number of tiles are not small FPS of animation drops steeply. Is there any way or idea to improve the performance of this kind of CALayer animation?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
A few things come to mind:
1) set
shouldRasterize
to YES on your layers2) don't use fractional values in frames if you can
3) make your layers opaque
4) try also setting the
drawsAsynchronously
property on the layers