iOS Question Animate view

Pooya1

Active Member
Licensed User
Hello
With below code we can animate view and rotate it
B4X:
Sub RotateViewAnimated(View As View, DurationMs As Int, Angle As Double)
    Dim no As NativeObject = Me
    no.RunMethod("rotateView:::", Array(View, DurationMs, Angle * cPI / 180))
End Sub
#If OBJC
- (void) rotateView:(UIView*)view :(int)DurationMs :(double)angle {
[UIView animateWithDuration:DurationMs / 1000.0 delay:0.0f
options:UIViewAnimationOptionCurveEaseOut animations:^{
view.transform = CGAffineTransformMakeRotation(angle);
} completion:^(BOOL finished) {

}];
}
#End If
I search in google and i understood we can use other animation example Scale or translation and other
Example CGAffineTransformMakeScale for scale view with animation
Do you know how do use it?
 
Top