Sub FlipView (View As View, Vertically As Boolean, Horizontally As Boolean)
Dim no As NativeObject = Me
Dim x, y As Int
If Horizontally Then x = -1 Else x = 1
If Vertically Then y = -1 Else y = 1
no.RunMethod("FlipView:::", Array(View, x, y))
End Sub
#if objc
- (void) FlipView:(UIView*)view :(int)x :(int)y {
view.transform = CGAffineTransformMakeScale(x, y);
}
#end if