title: Corebluetooth method scanForPeripheralsWithServices not working for me in any device.all github example not working with my devices ipod touch
body: <p>I am working on bluetooth related app.but i didn't get any success.</p>
  
  <p>in my app i want to connect my iDevice with any other bluetooth device who is scanning.</p>
  
  <p>but with CBCentralManager method scanForPeripheralsWithServices , i didn't get any response in didDiscoverPeripheral method.</p>
  
  <p>CBCentralManager alloc method here :- </p>
  
  <pre><code>(void)viewDidLoad
      {
          [super viewDidLoad];
  
          // Start up the CBCentralManager
          _centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
  
          _textview.userInteractionEnabled = NO; // not used in this test app
      }
  </code></pre>
  
  <p>Scanning method for CBCentralManager :-</p>
  
  <pre><code>(void)scanForPeripherals {
      if (self.centralManager.state != CBCentralManagerStatePoweredOn) {
          NSLog(@"CBCentralManager must be powered to scan peripherals. %d", self.centralManager.state);
          return;
      }
  
      if (self.scanning) {
          return;
      }
  
      self.scanning = YES;
  
      [self.centralManager scanForPeripheralsWithServices:nil options:@{ CBCentralManagerScanOptionAllowDuplicatesKey: @YES }];
      NSLog(@"Scanning started");
  }
  </code></pre>
  
  <p>but i never receive any response in didDiscoverPeripheral method.can any one help me with this code.?</p>