i'm trying create region in order tell location manager beacon care about. have generated unique uuid beacon using estimate app. however, keep getting error can't find solution to. please me solve it. have attached screenshot below.
here coding in writing:
let region = clbeaconregion(proximityuuid: nsuuid(uuidstring: "79a60506-ec33-44a4-ab5d-304816fec4e2"), identifier: "estimotes")
this error:
init(uuidstring:)' has been renamed 'init(uuidstring:)'
in swift 3.0, "uuidstring" changed in "uuidstring". after unique uuid beacon, have insert "as! uuid".
so, have change let this:
let region = clbeaconregion(proximityuuid: nsuuid(uuidstring: "79a60506-ec33-44a4-ab5d-304816fec4e2") as! uuid, identifier: "estimotes")
Comments
Post a Comment