[英]Expected a type error in 'myproj'-Bridging-Header.swift
enter image description here When I add UIIMage+Gif.swift file to my Objective C project to add GIF images in Swift files inside my Obj-C project I got "expected a type" error in generated swift header file. 在这里输入的形象描述当我添加的UIImage + Gif.swift文件到我的目标C项目,以在斯威夫特文件添加我的OBJ-C项目中的GIF图像我得到了“预期类型”中产生迅速的头文件的错误。
+ (double)delayForImageAtIndex:(NSInteger)index source:(CGImageSourceRef _Null_unspecified)source;
+ (UIImage * _Nullable)animatedImageWithSource:(CGImageSourceRef _Nonnull)source;
Simple, 简单,
add new file by right clicking on left panel where all objective c file and add new file and name it uiimage+gif its working 通过右键单击所有目标c文件所在的左侧面板来添加新文件,并添加新文件并将其命名为uiimage + gif
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.