当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - Cannot use RAMAnimatedTabBarController in Objective-C project?

问题描述:

In my Obj-C project, I wanted to use RAMAnimatedTabBarController(https://github.com/Ramotion/animated-tab-bar) which is a Swift module for adding animation to tabbar items.

I configured all the settings according to Can't use Swift classes inside Objective-C and I imported the Swift bridging header using

#import "ProjectName-Swift.h"

The header file was generated successfully but when I tried to create a RAMAnimatedTabBarController instance

RAMAnimatedTabBarController *test

XCode still gives the error "Use of undeclared identifier 'RAMAnimatedTabBarItem'". Can someone help with this?

网友答案:

I installed the swift code with cocoapods and used @import RAMAnimatedTabBarController; at the beginning of the file I was using

分享给朋友:
您可能感兴趣的文章:
随机阅读: