I trying to use the camera in a small app but getting this error:
Error: Invalid Class Typecast
What I did is:
- New multi device application
- Action list Component
TakePhotoFromCameraAction1
added to Actionlist- one button with action connected to
TakePhotoFromCameraAction1
Run 64 bit IOS9 Ipad Error
Run 32 bit IOS9 Ipad Error
It looks like the error is coming in this function FMX.MediaLibrary.Actions()
.
procedure TTakePhotoFromCameraAction.ExecuteTarget(Target: TObject);
begin
if IsSupportedInterface then // This line create the error
FCameraService.TakePhoto(Target as TControl, GetParamsPhotoQuery);
end;
Any idea?