Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 UIView 切片为多个 CAlayer,以便分别在每个切片上执行动画?
我不知道您到底要做什么,但是您可以将该视图渲染为图像 (1),从中裁剪出多个图像 (2) 并在它们上执行动画。
(1)在 iOS 4 中将 UIView 内容保存为内部图像的实际大小(即放大内容以保存)
(2) iPhone 4 (HD) 如何使用CGImageCreateWithImageInRect?