Dim NaObj As NativeObject = Me
NaObj.RunMethod("Animation:",Array(Panel1))
#If OBJC
- (void)Animation: (UIView *)someView {
CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;
rotationAndPerspectiveTransform.m34 = 1.0 / -1000.0;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI * 0.6, 1.0f, 0.0f, 0.0f);
[UIView animateWithDuration:1.0 animations:^{
someView.layer.anchorPoint = CGPointMake(0.5, 0);
someView.layer.transform = rotationAndPerspectiveTransform;
} completion:^(BOOL finished){
// code to be executed when flip is completed
}];
}
#End If