在swift项目中使用Objective-C项目

时间:2016-10-21 14:31:59

标签: ios objective-c swift

我希望能够在我自己的项目中使用这个项目: https://github.com/matibot/MBCircularProgressBar

但问题是那里使用的语言是客观的,我只知道迅速。有没有办法让它在我的项目中运作?

1 个答案:

答案 0 :(得分:0)

您可以使用桥接头将Objective-C桥接到Swift。本文档不是在帖子中解释,而是解释整个过程。 https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html