How to access both Objective-C and Swift classes from same storyboard?

前端 未结 4 826
一个人的身影
一个人的身影 2020-12-18 09:20

I have implemented one UIButton-derived class (RoundButton) in Swift and the rest is still in Objective-C. How do I access both Objective-C-based classes and Swift-based cla

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 10:06

    You should make sure that you have added Objective C bridging header. It is not a problem to use both Objective C and Swift in the same storyboard.

    http://i58.tinypic.com/33aqbyu.png

提交回复
热议问题