源码请点击github地址下载。
不管在什么项目里,在创建另外一种开发语言文件时系统会提示创建桥接文件OCAndSwift-Bridging-Header.h(其中OCAndSwift代表项目名称。),一定得有这桥接文件swift代码才能调用OC。
只须在需要使用Swift方法的OC文件中倒入头文件 #import "OCAndSwift-swift.h"即可,在任何oc文件中导入的头文件都一样,其中OCAndSwift代表项目名称。  func tappedButton(sender:UIButton!) {
      self.myImageView.image = LXHelpClass.getEllipseImageWithImage(self.myImageView.image)
      print(sender.tag, terminator: "swift")
  }
 @interface LXHelpClass : NSObject
 + (UIImage *)getEllipseImageWithImage:(UIImage *)originImage;
 @end
#import "OCAndSwift-swift.h"
- (void)pushBtnClicked:(UIButton *)sender
{
    SwiftController *swiftVC = [[SwiftController alloc] init];
    [self.navigationController pushViewController:swiftVC animated:YES];
}
class SwiftController: UIViewController {
    override func viewDidLoad() {
    ...
    }
    ...
}

QQ:2239344645  我的github原文:http://www.cnblogs.com/li-Xu/p/5742391.html