How to pass swift enum with @objc tag

前端 未结 2 675
暗喜
暗喜 2020-12-09 02:11

I need to define a protocol which can be called in a class that use some Objective-c type

But doing that doesn\'t work:

enum NewsCellActionType: Int          


        
2条回答
  •  难免孤独
    2020-12-09 02:14

    Apple just announced today that Swift 1.2 (included with xcode 6.3) will support exposing enums to objective-c

    https://developer.apple.com/swift/blog/

    enter image description here

提交回复
热议问题