Post

Replies

Boosts

Views

Activity

Select annotation in Map
Hello everyone. I have the following problem. I have a view with a map in which I visualize several points (annotation point). My problem is that when I select a point, I don't get any event to check, for example, the name of the annotation point, to then carry out operations. Tengo un View con un mapa @IBOutlet weak var Mapa: MKMapView! I make several queries to a database that returns a series of points (annotation points). To see which point I select, you would have to launch, once you click on the map, one of these procedures... right? extension DatosCercanos: MKMapViewDelegate { func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { print("hola") } func mapView(_ mapView: MKMapView, didDeselect annotation: MKAnnotation) { print("hola") } func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) { print("hola") } func mapView(_ mapView: MKMapView, didDeselect view:MKAnnotationView) { print("hola") } As you will see, I have put several procedures to see if any of them work, but none are executed, none jump to the event of pressing an annotation point What am I doing wrong? I don't understand why the event is not executed. Some help? Thank you.
1
0
870
Mar ’23
Database error when testing on device
Hello everyone. I have the following problem. I have an application that queries a database in sqlite. When I run the app in xcode on my mac I give it the path to the database to make it work. So far so good. But when I want to test this application on a physical device (iPhone 11), I get the error that the application cannot find the database. My question or problem is where I have to store the database on the iPhone so that the application can make the queries. Thank you.
9
0
3.6k
Feb ’23
Select annotation in Map
Hello everyone. I have the following problem. I have a view with a map in which I visualize several points (annotation point). My problem is that when I select a point, I don't get any event to check, for example, the name of the annotation point, to then carry out operations. Tengo un View con un mapa @IBOutlet weak var Mapa: MKMapView! I make several queries to a database that returns a series of points (annotation points). To see which point I select, you would have to launch, once you click on the map, one of these procedures... right? extension DatosCercanos: MKMapViewDelegate { func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) { print("hola") } func mapView(_ mapView: MKMapView, didDeselect annotation: MKAnnotation) { print("hola") } func mapView(_ mapView: MKMapView, didSelect annotation: MKAnnotation) { print("hola") } func mapView(_ mapView: MKMapView, didDeselect view:MKAnnotationView) { print("hola") } As you will see, I have put several procedures to see if any of them work, but none are executed, none jump to the event of pressing an annotation point What am I doing wrong? I don't understand why the event is not executed. Some help? Thank you.
Replies
1
Boosts
0
Views
870
Activity
Mar ’23
Database error when testing on device
Hello everyone. I have the following problem. I have an application that queries a database in sqlite. When I run the app in xcode on my mac I give it the path to the database to make it work. So far so good. But when I want to test this application on a physical device (iPhone 11), I get the error that the application cannot find the database. My question or problem is where I have to store the database on the iPhone so that the application can make the queries. Thank you.
Replies
9
Boosts
0
Views
3.6k
Activity
Feb ’23