WebQuest Active Member Licensed User Longtime User Apr 12, 2021 #1 Hi Community, I am translating my app from B4a to B4i for IOS. In the B4a app I used an animation library to rotate an image on itself in a continuous and fluid way. In b4i this Library is not found so I set the rotation in the imageView properties but at runtime the rotation does not happen smoothly. Anyone know a way to animate the display of an image without any problems? This is the b4a library I used: Code: Copy dim Any as Animation Any.InitializeRotateCenter("",200,0,ImageViewProgress) Any.Duration=300 ImageViewProgress.Tag=Any
Hi Community, I am translating my app from B4a to B4i for IOS. In the B4a app I used an animation library to rotate an image on itself in a continuous and fluid way. In b4i this Library is not found so I set the rotation in the imageView properties but at runtime the rotation does not happen smoothly. Anyone know a way to animate the display of an image without any problems? This is the b4a library I used: Code: Copy dim Any as Animation Any.InitializeRotateCenter("",200,0,ImageViewProgress) Any.Duration=300 ImageViewProgress.Tag=Any
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2021 #2 This should work quite good in release mode: Code: Copy Sub EndlessRotation (v As B4XView) Do While True v.SetRotationAnimated(1000, 180) Sleep(950) v.SetRotationAnimated(1000, 360) Sleep(950) Loop End Sub Upvote 0
This should work quite good in release mode: Code: Copy Sub EndlessRotation (v As B4XView) Do While True v.SetRotationAnimated(1000, 180) Sleep(950) v.SetRotationAnimated(1000, 360) Sleep(950) Loop End Sub