gpt4 book ai didi

ios - 无法在 Objective-C 项目中使用 RAMAnimatedTabBarController?

转载 作者:行者123 更新时间:2023-11-30 14:03:49 26 4
gpt4 key购买 nike

在我的 Obj-C 项目中,我想使用 RAMAnimatedTabBarController( https://github.com/Ramotion/animated-tab-bar ),它是一个用于向选项卡栏项目添加动画的 Swift 模块。我按照Can't use Swift classes inside Objective-C配置了所有设置我使用导入了 Swift 桥接头

#import "ProjectName-Swift.h"

头文件已成功生成,但是当我尝试创建 RAMAnimatedTabBarController 实例时RAMAnimatedTabBarController *测试XCode 仍然给出错误“使用未声明的标识符‘RAMAnimatedTabBarItem’”。有人可以帮忙吗?

最佳答案

我用cocoapods安装了swift代码并使用@import RAMAnimatedTabBarController;在我正在使用的文件的开头

关于ios - 无法在 Objective-C 项目中使用 RAMAnimatedTabBarController?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32644421/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com