标签:
*.swift
file (in Xcode) or add it by using FinderImplement your Swift class by using @objc
attribute:
import UIKit
@objc class Hello: NSObject {
func sayHello() {
print("Hi there!")
}
}
Import header (which is auto generated by Xcode) in your *.m file
#import "myproject-Swift.h"
标签:
原文地址:http://www.cnblogs.com/dzhs/p/5500747.html