Skip to content

Instantly share code, notes, and snippets.

@hcwang
hcwang / gist:1a62d7a2def4d271d950
Created February 3, 2016 01:25
Multipeer Connectivity framework on OS X and iOS
//On iOS
import UIKit
import MultipeerConnectivity
class ViewController: UIViewController {
var _session: MCSession!
var _peerID: MCPeerID!
var _browser: MCNearbyServiceBrowser!
override func viewDidLoad() {