title: Detecting Bluetooth Enabled iPhone devices in IOS7 in IOS
body: <p>I am using Core Bluetooth Framework in my app.</p>
  
  <p>I know how to scan for peripherals and getting values from it.(like Heart Rate Monitor)</p>
  
  <p>But what I want is to retrieve the surrounding iPhone Devices list that supports BLE 4.0 and Bluetooth Enabled ones.</p>
  
  <p>I referred below links..</p>
  
  <p><a href="http://www.ggkf.com/osx/how-to-make-a-drop-down-list-of-available-bluetooth-devices-in-objective-c" rel="nofollow noreferrer">Uses IOBluetooth Framework</a> </p>
  
  <p><a href="https://stackoverflow.com/questions/13062096/how-to-display-the-supported-services-of-bluetooth-in-tableview-from-devicename">Uses CoreBluetooth For Getting Peripherals not the Devices List</a></p>
  
  <pre><code> - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI {
      // I'm not sure how to make this work
  
      NSLog (@"Discovered peripheral: %@", [peripheral name]);
      [self.list addObject:peripheral.name]; // add peripheral name to foundarray
      NSLog (@"UUID peripheral: %@", [peripheral UUID]);
  
      NSLog (@"peripheral services before connected: %@", [peripheral services]);
  
      NSLog(@"adversting data %@",[NSString stringWithFormat:@"%@",[advertisementData description]]);
  
      NSLog(@"foundArray is %@", self.list);
  }
  
  - (void)centralManagerDidUpdateState:(CBCentralManager *)central {
      NSLog(@"Central manager's state is updated to: %@", central);
      if(central.state == CBCentralManagerStatePoweredOn)
      {
          //okay your good to go and can now scan
      }
      else
      {
          //Unable to use CentralManager methods so print out the central.state and find out why
      }
  }
  </code></pre>
  
  <p>I dont know whether Apple provides this or not..</p>
  
  <p>Any Suggestions or Ideas will be appreciated..</p>
  
  <p>Thank In Advance..</p>