1. //
2. // Use this file to import your target‘s public headers that you would like to expose to Swift.
3. //MixDemo/MixDemo-Bridging-Header.h
4.
5. #import "OCChannel.h"
1. import UIKit
2.
3. class ViewController: UIViewController {
4.
5. override func viewDidLoad() {
6. super.viewDidLoad()
7. // Do any additional setup after loading the view, typically from a nib.
8.
9. //调用OC类
10. var channel = OCChannel()
11. println(channel.ChannelChange(10))
12. println(channel.ChannelChange(2))
13. }
14.
15. override func didReceiveMemoryWarning() {
16. super.didReceiveMemoryWarning()
17. // Dispose of any resources that can be recreated.
18. }
19.
20.
21. }