title: search and connect bluetooth device from iPhone app
body: <p>I am trying to use Bluetooth of iPhone/iPad device from my APP and search for near by devices within range and connect to the same.</p>
  
  <p>Like non iOS phone or MAC within range it should show available device and when tap needs to connect from the app.</p>
  
  <p>I want to do this from my app.
  i have tried below code using core bluetooth framework:</p>
  
  <pre><code>    _centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
      _centralManager.delegate = self;
  
  - (void)DidUpdateState:(CBCentralManager *)central
  {
      if (central.state != CBCentralManagerStatePoweredOn) {
          return;
      }
  
      //start scanning
      [self.centralManager scanForPeripheralsWithServices:nil options:nil];
  
  }
  </code></pre>
  
  <p>but no delegates being called...i am running app on iPad 4 and i have LE android phone(Bluetooth 4.0 LE compliant).
  scanForPeripheralsWithServices:nil i am setting nil to show all available devices....</p>
  
  <p>Thanks in advanced.</p>