问题描述:

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

相关阅读:
Top