ios - 如何制作类似 Swipe 的动画
<p><p> <a href="/image/Jn81G.png" rel="noreferrer noopener nofollow"><img src="/image/Jn81G.png" alt="1.1"/></a> </p>
<p> <a href="/image/VUYSX.png" rel="noreferrer noopener nofollow"><img src="/image/VUYSX.png" alt="1.2"/></a> </p>
<p> <a href="/image/ruMgI.png" rel="noreferrer noopener nofollow"><img src="/image/ruMgI.png" alt="1.3"/></a> </p>
<p> <a href="/image/ZRylY.png" rel="noreferrer noopener nofollow"><img src="/image/ZRylY.png" alt="1.4"/></a> </p>
<p> <a href="/image/Ntgs2.png" rel="noreferrer noopener nofollow"><img src="/image/Ntgs2.png" alt="1.5"/></a> </p>
<p>如何制作如图所示的滑动动画。我猜它使用 CALayer 但不确定。</p>
<p> <a href="/image/sOebv.gif" rel="noreferrer noopener nofollow"><img src="/image/sOebv.gif" alt="enter image description here"/></a> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>对于箭头图像,可以使用 <code>UIImage</code> <code>animatedImage(with:duration:)</code></p>
<p> <a href="https://developer.apple.com/reference/uikit/uiimage/1624149-animatedimage" rel="noreferrer noopener nofollow">animatedImageWithDuration</a> </p>
<p>您可以提供多张图片和一个时间跨度,图片会动画</p></p>
<p style="font-size: 20px;">关于ios - 如何制作类似 Swipe 的动画,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/41565774/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/41565774/
</a>
</p>
页:
[1]