gpt4 book ai didi

ios - 旋转图像仅适用于第一 react

转载 作者:行者123 更新时间:2023-11-28 06:06:29 26 4
gpt4 key购买 nike

<分区>

当我点击应用中的按钮时,我希望它旋转 180 度。我下面的代码有效,但是如果它再次单击按钮,它根本不会旋转,它只是停留在原来的位置。

下面是我的代码

func animateRecommendButton() {
UIView.animate(withDuration: 0.25) { () -> Void in
self.recommendButton.transform = CGAffineTransform(rotationAngle: CGFloat.pi)
}
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com