Is possible add TAG property to ImageView to save some information (as for button in the sample).
How I can loop on all ImageView present on a DPFJScrollView?
At run time is possible search for a component (by name or by id) as for controls on a form win32 application?
thanks
Last edit: luca 2014-01-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is possible add TAG property to ImageView to save some information (as for button in the sample).
How I can loop on all ImageView present on a DPFJScrollView?
At run time is possible search for a component (by name or by id) as for controls on a form win32 application?
thanks
Last edit: luca 2014-01-24
You can base your own class on the imageview and add the property yourself. Create a new unit similar to this and add it to your project:
unit Unit3;
interface
uses
System.Classes, DPF.iOS.UIImageView;
type
TmyDPFImageView =class(TDPFImageView)
private
ftag: integer;
public
constructor Create(AOwner: TComponent); override;
//destructor Destroy; override;
Property tag: integer read ftag write ftag;
end;
implementation
end.
Add this unit to the interface uses clause of your form and then change your TDPFImageView components to be TmyDPFImageView.