我试图在一个小应用程序中使用相机但收到此错误:
错误:无效的类类型转换
我所做的是:
- 新的多设备应用程序
- 动作列表组件
TakePhotoFromCameraAction1
添加到行动清单- 一个按钮,动作连接到
TakePhotoFromCameraAction1
运行 64 位 IOS9 Ipad 错误
运行 32 位 IOS9 Ipad 错误
看起来这个函数出现了错误FMX.MediaLibrary.Actions()
。
procedure TTakePhotoFromCameraAction.ExecuteTarget(Target: TObject);
begin
if IsSupportedInterface then // This line create the error
FCameraService.TakePhoto(Target as TControl, GetParamsPhotoQuery);
end;
任何想法?