Search results for

Apple Maps Guides

149,828 results found

Post

Replies

Boosts

Views

Activity

Attaching custom depth map to an image
Hi,I am trying to attach a custom depth map as explained in this post:https://developer.apple.com/documentation/avfoundation/avdepthdata/creating_auxiliary_depth_data_manually?language=objcI converted the grayscale image to an NSData object and set in the kCGImageAuxiliaryDataInfoData Dictionary and i can save it successfully. But when i try to read it back its returns an invalid depth map.Note: the image is a single channel grayscale image which i extracted from a dual camera device. I now want to apply it to any image, just like DepthCam app on ios does. It allows the user to attach a depth map to any image from the roll and saves it as portrait mode supported image.Has any one been able to add a custom depth map successfully to an image?
1
0
1.2k
Apr ’19
Adding a map to my project crashes
When adding a map anywhere in our project whether it be through a xib, storyboard or programmatically will crash the app. This crash occurs on a physical device. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[VKMapView layer]: unrecognized selector sent to instance 0x109695d60' I'm using xcode 14.1 OS Ventura 13.0.1 MacBook Pro 16in 2019
1
0
596
Dec ’22
Map links/multiple points
I have a web page that I need to display multiple points on a map, and want to use the native app on the device if possible. I've read through:https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.htmlHowever, I don't see anyway to add multiple points, is there a way to do this? Just making sure I didn't miss something.Thanks
0
0
128
May ’16
Step-by-step guide for SecKeyCreateWithData from OpenSSL PEM?
A quick search for SecKeyCreateWithData reveals that it isn't the most straight-forward API to use for many Developers' use-cases ...https://forums.developer.apple.com/thread/102621https://forums.developer.apple.com/thread/72445It seems reasonable that Developers who wish to use ECDSA for any sort of server <==> iOS communication discrete data exchange should be able to simply:1. Fire up Terminal2. Create Private + Public ECDSA keys:# Generate an ECDSA Private key. openssl ecparam -genkey -name prime256v1 -out ec256-private.pem # Generate an ECDSA Public key. openssl ec -in ec256-private.pem -pubout -out ec256-public.pem3. <-- Follow some steps to use the Base64 .pem to create keys in iOS -->4. Use SecKeyCreateWithData, ex:let publicKey = SecKeyCreateWithData(pemData as CFData ...)@eskimo -- might you consider creating a step-by-step tutorial as to your / Apple's best recommendation on how to accomplish this?Your responsiveness on the forums is excellent, so thank you. It just seems that
4
0
5.1k
May ’18
Safari App Extension Programming Guide missing
The document Safari App Extension Programming Guide appears to be missing. The URL https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/SafariAppExtension_PG/ redirects to the SafariServices framework reference. The document was there a few weeks ago, and it was essential for creating my Safari app extension. Is this just a web site bug? Can the document be restored?
2
0
1.2k
May ’18
How to detect MapKit Map panning/scrolling ended
Hello, I'm trying to figure out how to detect when user stops scrolling (panning) the map. The problem: I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation. when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map So my question is - how to detect in this case when customer stopped moving the map? Have anyone faced the same problem? Any ideas how to solve it?
3
0
2.3k
Apr ’23
iOS 17 Map sits over TabView
I'm putting together a really simple demo/learning app to try out some of the new features of iOS 17, and I've found when adding a Map to an existing TabView, the map is extending itself over the tab, which is actually still visible and can be interacted with, but is basically hidden. There may be a modifier or something I'm missing to tell the map to stay in its frame, but I haven't found it. I have tried ones like safeAreaInsets, but that didn't seem to be right. Here's my super-simple view: TabView { Text(Not the map) .tabItem { Label(Not Map, systemImage: person) } Map() .tabItem { Label(Map, systemImage: map) } } And here's how it looks in the Simulator: I will file a feedback for this, but didn't want to too quickly assume it's a bug when it's just as likely I'm not doing something right (if not more so).
1
0
1.1k
Jul ’23
Where is the living auto-layout guide now located?
The Auto Layout Guide has been archived and is no longer being updated. This is the old link https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/index.htmlBut the webpage says IMPORTANTThis document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website.However, where is the auto-layout information? I don't see the auto-layout documentation in https://developer.apple.com/documentation.
3
0
1.1k
Jul ’18
SceneKit crashes on displacement map titling
The issue happens when using XCode 9.4 or XCode 10beta for developing iOS SceneKit appI try to apply displacement map on an object surface. The app works fine without texture titling.However, it doesn't work after I add a line to scale the mapping for texture titling purpose:material.displacement.contentsTransform = SCNMatrix4MakeScale(scale, scale, 0)In this case, the app crashes with error log:validateFunctionArguments:3341: failed assertion `Vertex Function(commonprofile_vert): argument scn_commonprofile[0] from buffer(3) with offset(0) and length(480) has space for 480 bytes, but argument has a length(544).'How can I use displacement map titling correctly?Thanks
0
0
695
Aug ’18
ForEach loop in a Map doesn't work
Hi all, here's a tiny litte demo app import SwiftUI import MapKit struct MarkerData: Identifiable { var id = UUID() var coordinate: CLLocationCoordinate2D } struct MapView2: View { @State private var markers: [MarkerData] = [] var body: some View { ForEach(markers) { marker in Text((marker.coordinate)) } Map { ForEach(markers) { marker in MapMarker(coordinate: marker.coordinate) } } } } The ForEach loop inside the Map gives the error: Generic parameter 'V' could not be inferred The one above seems to be fine. What is wrong with the loop inside the map? (I'm working with XCode Version 16.2) Best!
4
0
384
Mar ’25
MapKit JS - Center Map Around Coordinates
I'm working with MapKit JS for the first time. I'm using the 'Annotations With a Custom Callout' sample code as my starting point as my map will need to work in a similar way to this one. I've got the basics working but I would now like to specify the center coordinates for the map but can't get this to work and not sure of the correct syntax. For example if I wanted that map to centre around these coordinates: (37.8184493, -122.478409) I'm not sure where/how to specify these. I've tried adding: var center = new mapkit.Coordinate(37.8184493, -122.478409); after: const map = new mapkit.Map(map); but this doesn't change how the map is displayed. Appreciate if someone can show me where/how to specify the center coordinates for this type of map.
0
0
719
Mar ’23
Tap on maps to get coordinates
Hey guys, I recently started using Swiftui and would like to make a small app for my dad to use as a travel journal as my first project. He can create trips and then create multiple steps in a trip. When creating a step he should be able to set a location. Finding the location from the user is no problem. But now I also want to have the function to tap on the map and set a pin at a random location to get the coordinates (like google maps for example). Unfortunately I can't figure out from the documentation if there is a simple way to do this. import SwiftUI import MapKit struct StepLocationView: View { @EnvironmentObject var locationManagement: LocationDataManager @State private var position: MapCameraPosition = .automatic var body: some View { VStack { Map(position: $position) { UserAnnotation() } .navigationTitle(Search your location) .navigationBarTitleDisplayMode(.inline) .toolbarBackground(.visible, for: .navigationBar) .toolbarBackground(.ultraThinMaterial, for: .navigationBar
3
0
3.8k
Jul ’23