title: A simple code to detect any beacon in swift
body: <p>I am new to swift programing , I am trying to develop app detecting beacons but still I can not detect any beacon.</p>
  
  <pre><code>let region = CLBeaconRegion(proximityUUID: NSUUID(UUIDString: "11111111-1111-1111-1111-111111111111")!,major: 1, minor: 1,  identifier: "MyBeacon")
  locationManager.startMonitoringForRegion(region)
  locationManager.startRangingBeaconsInRegion(region)
  </code></pre>