title: How to conform to CBCentralManagerDelegate Protocol?
body: <p>I am trying to initialize a central manager instance to make an app with Bluetooth connectivity.</p>
  
  <p>This is part of my code:</p>
  
  <pre><code>class ViewController: UIViewController, CBCentralManagerDelegate {
     var myCentralManager = CBCentralManager(delegate: self, queue: nil) //error on this line
     func centralManagerDidUpdateState(central: CBCentralManager!) { 
  }
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>"Type 'ViewController -> () -> ViewController!' does not conform to protocol 'CBCentralManagerDelegate'</p>
  </blockquote>
  
  <p>The only method required by the protocol is <code>centralManagerDidUpdateState()</code> which I have added, so why do I get an error?</p>