Search results for

“Apple Maps Guides”

159,824 results found

Post

Replies

Boosts

Views

Activity

visionOS: How to tap annotations on a map?
I am trying to create a Map with markers that can be tapped on. It also should be possible to create markers by tapping on a location in the map. Adding a tap gesture to the map works. However, if I place an image as an annotation (marker) and add a tap gesture to it, this tap will not be recognized. Also, the tap gesture of the underlying map fires. How can I a) react on annotation / marker taps b) prevent that the underlying map receives a tap as well (i.e. how can I prevent event bubbling)
0
0
454
Jan ’24
Safe layout guide issue
Hi,I'm confused about how the Safe layout guide works.I was told that I should use the safe layout guide to align UI elements to the top and bottom of the safe area, instead of aligning them to the top and bottom of the root view, and that this would allow my apps to avoid the unsafe areas on the iPhone X, as well as the default navigation and status bars.When I did this and tested my apps on iOS 11, it all worked as advertised.However, when I tested my apps on iOS 10, it did not work at all. Items that are supposed to be aligned to the top of the safe area instead extend underneath the navigation bar or status bar.Obviously, a lot of people still run iOS 10. I can't release an app that only works on iOS 11, at least not until the majority of users upgrade, which won't happen for at least a year.In the meantime, how do I create an app that works properly on both iOS 11 and earlier versions?Thanks,Frank
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
458
Oct ’17
Maps / Geocoding in SwiftUI
I have written a program in SwiftUI to display information from a database that includes the street address, but not the latitude and longitude. I've added a button that passes the street address to geocodeAddressString to get the lat & long and updates the map, but every time I click the button, even though the map appears to be displayed properly, I get a message in Xcode complaining Modifying state during view update... My view has a @State variable that holds a MKCoordinateRegion() for the map to display. The closure on completion of the geocode lookup updates that @State. @State private var mapRegion = MKCoordinateRegion() private func updateAddress() { let index = data.zipCode.index(data.zipCode.startIndex, offsetBy: 5) geocoder.geocodeAddressString((data.streetAddress) (data.zipCode[..
0
0
1k
Nov ’21
Mapping and photos
Hello all I am quite a newbie to this, I have been playing with programming over the years on and off, but I have decided now to have a realy go at it and actually make it of some use.I have an idea in my head, and I would like my app to allow me to take an image and then tag it on a map, what should I be focusing on to learn this? I am not looking for answers in here as htat really wont teach me anything, I am looking for resources that can grow my skill.I am starting with El Capitan (I am along time mac user) and XCode 7, with my dev iPhone on iOS9Cheers,Damien K
0
0
163
Sep ’15
How to map channels with a AVAudioMixerNode?
Hello,is there any way to select which input channels shall be mapped to the output with a AVAudioMixerNode?I have a inputNode with 4 channels and want to use 2 specific channel from it within my processing chain.To get an idea it looks like this:... var mixer = AVAudioMixerNode() var inputFormat = audioEngine.inputNode.inputFormat(forBus: 0) // This one has 4 channels var outputFormat = AVAudioFormat(commonFormat: inputFormat.commonFormat, sampleRate: inputFormat.sampleRate, channels: 2, interleaved: inputFormat.isInterleaved)! audioEngine.attach(mixer) audioEngine.attach(someOtherNode) audioEngine.connect(inputNode, mixer, inputFormat) audioEngine.connect(mixer, someOtherNode, outputFormat) ...Basically this works as expected but I have no choice about the channel mapping from input to output.The mixer automatically maps channel 0 and 1 from the four input channels to the two output channels.How I can I tell the mixer that it should map channel 2 and 3 to the output chann
0
0
650
May ’20
Is there any guide to use Game Center on tvOS?
Hi.I'm having a hard time trying to make GC work on my tvOS game.I have added GC support to my previous games on iOS and OSX but it seems my old classes are not working anymore on tvOS and I can't find any reference to how GC is meant to be used in Apple TV.Do you know of any tvOS oriented guide or tutorial?
0
0
342
Nov ’15
Creating UIfocus guide dynamically
I have a collection of images on a UICollectionView . For each image I get dynamic number of hotspots (x,y coordinates) from a server and I create and place dynamic UIButtons on those hotspots as subviews of the main UIImageView. I really need to know how to setup Focus guide for these dynamically created buttons on specific x,y coords on the UIImageView ?
0
0
359
May ’16
what approach does Apple IOS Maps use to show annotation details? (image attached)
What approach does apple use in it's IOS Maps apps for show the annotation details?For example to reproduce this in your own app would it be via creation of a View Controller in Storyboard and then use of the popover method, however in this case I would normally see on iPhone it taking up the whole screen, so it seems it's a different approach or you have to do some special customisation above & beyond the base popover approach?https://s29.postimg.org/4hkp7qexj/forum_1.png
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
374
Jan ’17
Reply to How to get iOS GPS record when app closed
If the app uses the significant location change service, it will be relaunched on significant location change even after force quit (iOS 8 and later), and I believe if it has Always permission it can restart continuous monitoring at that point using the standard APIs. Haven't done that myself to confirm.Everything you are allowed to do is described in the Location & Maps Programming Guide.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’16
Swift variable mapping
I'm sure you're heard of this before, but I had a parser in Obj-C for mapping values from a JSON dictionary to an Obj-C class using class_copyPropertyList.Unfortunately this is not compatible with swift. So if i wanted to implement the same code I need to provide a bridging header and ensure that the swift objects are subclasses of NSObjects. It's also not very compatible since it does not support mappings for Enums, Structs or Generic Swift Classes.Win yourselves the heart of the developer community by providing a framework feature for mapping properties directly into any swift class, enum or struct by providing a groundbreaking mapping function! Something flexible that allows developer some control. I was thinking of something along the lines of:WHERE: class SwiftObject { var variableX : Int? } AND: func getJsonDictionary() -> [String:AnyObject]{ return { variableX : 100 } } THEN: let json : [String:AnyObject] = self.getJsonDictionary() print(swiftObject.variableX) //p
0
0
1.1k
Jul ’15
Downloading map for offline use
I am creating a mobile app based around city tours. I want to include a download function that would allow the user to tour offline using GPS/Apple maps. Is this possible?
Replies
0
Boosts
0
Views
711
Activity
Jan ’24
Reply to Indoor Maps
Using indoor maps on your own map implies that you have your own IMDF files for the venue. Indoor maps visible in Apple Maps are not available through the MapKit and MapKit JS APIs.
Replies
Boosts
Views
Activity
Jun ’19
visionOS: How to tap annotations on a map?
I am trying to create a Map with markers that can be tapped on. It also should be possible to create markers by tapping on a location in the map. Adding a tap gesture to the map works. However, if I place an image as an annotation (marker) and add a tap gesture to it, this tap will not be recognized. Also, the tap gesture of the underlying map fires. How can I a) react on annotation / marker taps b) prevent that the underlying map receives a tap as well (i.e. how can I prevent event bubbling)
Replies
0
Boosts
0
Views
454
Activity
Jan ’24
Safe layout guide issue
Hi,I'm confused about how the Safe layout guide works.I was told that I should use the safe layout guide to align UI elements to the top and bottom of the safe area, instead of aligning them to the top and bottom of the root view, and that this would allow my apps to avoid the unsafe areas on the iPhone X, as well as the default navigation and status bars.When I did this and tested my apps on iOS 11, it all worked as advertised.However, when I tested my apps on iOS 10, it did not work at all. Items that are supposed to be aligned to the top of the safe area instead extend underneath the navigation bar or status bar.Obviously, a lot of people still run iOS 10. I can't release an app that only works on iOS 11, at least not until the majority of users upgrade, which won't happen for at least a year.In the meantime, how do I create an app that works properly on both iOS 11 and earlier versions?Thanks,Frank
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
458
Activity
Oct ’17
Maps / Geocoding in SwiftUI
I have written a program in SwiftUI to display information from a database that includes the street address, but not the latitude and longitude. I've added a button that passes the street address to geocodeAddressString to get the lat & long and updates the map, but every time I click the button, even though the map appears to be displayed properly, I get a message in Xcode complaining Modifying state during view update... My view has a @State variable that holds a MKCoordinateRegion() for the map to display. The closure on completion of the geocode lookup updates that @State. @State private var mapRegion = MKCoordinateRegion() private func updateAddress() { let index = data.zipCode.index(data.zipCode.startIndex, offsetBy: 5) geocoder.geocodeAddressString((data.streetAddress) (data.zipCode[..
Replies
0
Boosts
0
Views
1k
Activity
Nov ’21
Mapping and photos
Hello all I am quite a newbie to this, I have been playing with programming over the years on and off, but I have decided now to have a realy go at it and actually make it of some use.I have an idea in my head, and I would like my app to allow me to take an image and then tag it on a map, what should I be focusing on to learn this? I am not looking for answers in here as htat really wont teach me anything, I am looking for resources that can grow my skill.I am starting with El Capitan (I am along time mac user) and XCode 7, with my dev iPhone on iOS9Cheers,Damien K
Replies
0
Boosts
0
Views
163
Activity
Sep ’15
How to map channels with a AVAudioMixerNode?
Hello,is there any way to select which input channels shall be mapped to the output with a AVAudioMixerNode?I have a inputNode with 4 channels and want to use 2 specific channel from it within my processing chain.To get an idea it looks like this:... var mixer = AVAudioMixerNode() var inputFormat = audioEngine.inputNode.inputFormat(forBus: 0) // This one has 4 channels var outputFormat = AVAudioFormat(commonFormat: inputFormat.commonFormat, sampleRate: inputFormat.sampleRate, channels: 2, interleaved: inputFormat.isInterleaved)! audioEngine.attach(mixer) audioEngine.attach(someOtherNode) audioEngine.connect(inputNode, mixer, inputFormat) audioEngine.connect(mixer, someOtherNode, outputFormat) ...Basically this works as expected but I have no choice about the channel mapping from input to output.The mixer automatically maps channel 0 and 1 from the four input channels to the two output channels.How I can I tell the mixer that it should map channel 2 and 3 to the output chann
Replies
0
Boosts
0
Views
650
Activity
May ’20
Is there any guide to use Game Center on tvOS?
Hi.I'm having a hard time trying to make GC work on my tvOS game.I have added GC support to my previous games on iOS and OSX but it seems my old classes are not working anymore on tvOS and I can't find any reference to how GC is meant to be used in Apple TV.Do you know of any tvOS oriented guide or tutorial?
Replies
0
Boosts
0
Views
342
Activity
Nov ’15
ARKit Depth Map
Hi! Would the Lidar sensor and the depth map data allow you to extract accurate measures of an object/person?
Replies
1
Boosts
0
Views
1.8k
Activity
Jun ’20
ARGeoTracking with Indoor Mapping
Does localized data used for ARGeoTracking also include data submitted within Indoor Mapping (IMDF)?
Replies
1
Boosts
0
Views
637
Activity
Jun ’20
Creating UIfocus guide dynamically
I have a collection of images on a UICollectionView . For each image I get dynamic number of hotspots (x,y coordinates) from a server and I create and place dynamic UIButtons on those hotspots as subviews of the main UIImageView. I really need to know how to setup Focus guide for these dynamically created buttons on specific x,y coords on the UIImageView ?
Replies
0
Boosts
0
Views
359
Activity
May ’16
what approach does Apple IOS Maps use to show annotation details? (image attached)
What approach does apple use in it's IOS Maps apps for show the annotation details?For example to reproduce this in your own app would it be via creation of a View Controller in Storyboard and then use of the popover method, however in this case I would normally see on iPhone it taking up the whole screen, so it seems it's a different approach or you have to do some special customisation above & beyond the base popover approach?https://s29.postimg.org/4hkp7qexj/forum_1.png
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
374
Activity
Jan ’17
Reply to Can I use an NFC on my iPhone to unlock a door?
When you refer to NFC door what do you mean with that? You'd need an Apple Access certified NFC reader at the door - here is a guide on the topic: https://www.getkisi.com/guides/apple-wallet-access
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Feb ’24
Reply to How to get iOS GPS record when app closed
If the app uses the significant location change service, it will be relaunched on significant location change even after force quit (iOS 8 and later), and I believe if it has Always permission it can restart continuous monitoring at that point using the standard APIs. Haven't done that myself to confirm.Everything you are allowed to do is described in the Location & Maps Programming Guide.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’16
Swift variable mapping
I'm sure you're heard of this before, but I had a parser in Obj-C for mapping values from a JSON dictionary to an Obj-C class using class_copyPropertyList.Unfortunately this is not compatible with swift. So if i wanted to implement the same code I need to provide a bridging header and ensure that the swift objects are subclasses of NSObjects. It's also not very compatible since it does not support mappings for Enums, Structs or Generic Swift Classes.Win yourselves the heart of the developer community by providing a framework feature for mapping properties directly into any swift class, enum or struct by providing a groundbreaking mapping function! Something flexible that allows developer some control. I was thinking of something along the lines of:WHERE: class SwiftObject { var variableX : Int? } AND: func getJsonDictionary() -> [String:AnyObject]{ return { variableX : 100 } } THEN: let json : [String:AnyObject] = self.getJsonDictionary() print(swiftObject.variableX) //p
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’15