Ios swift – Can't show alert to user
In an iOS app, when the user denies location permission, I want to show an alert to give permission. I debug it and code works successfully but I can't see any alert in the simulator. I start the program and…
In an iOS app, when the user denies location permission, I want to show an alert to give permission. I debug it and code works successfully but I can't see any alert in the simulator. I start the program and…
I'm creating an app that contains a compass tab. I would like for it to vibrate upon changing degrees of orientation. I got it to work, however, when I switch over to a new tab I can still feel the…
I am new to swift . I am trying to show user location with Pin . I added the permission in Info Plist to allow the user access . I am using the storyboard and I tried to edit the…
I have written this code: In the first step, I read an Excel file that contains the addresses of the buildings as a string. LABE HAUS Gemeindename Hasenwinkel 14 Braunschweig The Excel file is similar to the table above. I…
If user disabled location services in privacy settings, how can I show this popup. Tap on settings button opens settings with privacy category, we can't do it using private api, so I think it is system popup. But what function…
I have a separate class named LocationService class LocationService: NSObject, CLLocationManagerDelegate { private var locationManager = CLLocationManager() private var locationCallback: ((CLLocation?) -> Void)! override init(){ super.init() self.locationManager.delegate = self } public func getCurrentLocation (_ completion: @escaping(CLLocation?) -> Void) { if…
I'm using Project Dents ARKit + CoreLocation Pod to place a 3D model from a local file path at specific gps coordinates in the real world. I'm able to see my 3d model in AR. However, it seems like it's…
I am trying to refine a query of nearby placemarks. So far, all queries return the exact same 25 results. In the example below you can see 2 attempts (each done separately but displayed together for simplicity) labled "attempt 1"…
I am very new to coding in general and have been following lots of tutorials to get where I am right now. I followed this other question of stackoverflow: Finding the compass orientation of an iPhone in swift Following the…