Dze Dze - 7 months ago 16
Swift Question

performseguewithidentifier when a beacon is in range

I would just like to ask how to performseguewithidentifier and open a new view when a beacon is in range of the application. Please help me and provide an example and documentation. Thank you.

Answer

Tutorials you should look at:

These links all give examples of how to use CoreLocation to figure out when your phone is in range of an iBeacon. Then, you can use the performSegueWithIdentifier method to open a new view controller, like so:

self.performSegueWithIdentifier("segueToMyOtherVC", sender: self)