iOSImageViewExtension - UBogun/Xojo-iosLib GitHub Wiki

iOSImageViewExtension extends every iOSImageView with UIImageView methods and properties and gives access to the underlying UIImageView/AppleImageView class instance.

General information

Definitions of enumerations, explanations of animations, other methods and properties are available under UIView Basics and the subsections listed there.
UIImageView has no custom events. In most cases the use of this extnesion module will serve you better than the custom [iOSLibImageView(https://github.com/UBogun/Xojo-iosLib/wiki/iOSLibImageView) control which basically only features man of the properties as inspector properties, but has no greater benefits of use.

Properties

Being a module, the properties are only "virtual" properties being realized via methods, which means you cannot view them in debugger. You can if you copy the View As AppleImageView representation before returning to the debugger.

Animating As Boolean (read-only): True when the view plays an animation.

AnimationDuration As Double: The amount of time in seconds it takes to go through one cycle of the images.

AnimationImages As iOSImage(): An array of iOSImage objects to use for an animation.

AnimationRepeatCount As Integer: The number of times to repeat the animation.

Highlighted As Boolean: Determines whether the image is highlighted.

HighlightedAnimationImages As iOSImage()s: An array of iOSImage objects to use for an animation when the control is in highlighted state.

HighlightedImage As iOSImage: The highlighted image displayed in the image view.

View As AppleImageView (read-only): The underlying AppleImageView object of the control.

Methods

StartAnimating(): Starts animating the images in the control with the first image.

StopAnimating(): Stops animating the images in the control.