Search results for

Apple Maps Guides

154,028 results found

Post

Replies

Boosts

Views

Activity

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
441
Oct ’17
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
327
Nov ’15
Map Snapshot With WatchOS 2
I know that this is slightly unorthodox, as is is less of a community question and more of a hope that an apple engineer might see this. I would use a Support ticket however they are not allowed for Pre Release software, therefore I am here.I currently have a Watch app on the App Store, The app is an activity tracker for Cycling & Running.I have a feature in the app that allows the user to see a map of there surrounding area.The map is created using a MKMapSnappshotter to create a UIImage onto which I add some overlays showing the users position and a poly line of where they have been.The issue is that now Apple Watch apps are native, the MapKit framework is off limits (With good reason). I therefore moved the snapshot code into the main app and simply requested the Snapshot using the Watch Connectivity Framework which works... but only if the iOS App is running in the foreground.As stated in the documentation the MKMapSnapshotter will only return the image if the app i
2
0
580
Jun ’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
348
May ’16
Polylines do not stay on map
When I create a polyline and add it to the map, it will disappear if the map is moved. If I add a polygon or annotation, it remains on the map if the map is moved: const polyline = new mapkit.PolylineOverlay(path, { style: new mapkit.Style({ lineWidth: 5, strokeColor: '#007AFF', lineJoin: 'round', lineCap: 'round' }) }) map.addOverlay(polyline) // disappears if the map moves or zoom changes const polygon = new mapkit.PolygonOverlay(shapes, { style: new mapkit.Style({ fillRule: 'evenodd' }), enabled: false }) map.addOverlay(polygon) // remains on map when map moves or zoom changes Why is it inconsistent? How can I make the polyline stay until I explicitly remove it?
0
0
578
Sep ’24
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
354
Jan ’17
App review rejection on map usage
We request for your kind support, whether it is a previous experience or even a comment will help us a lot! We received rejection for below issue from Apple : ** Guideline 4.0 - Design Your app's location feature is not integrated with the built-in mapping functionality, which limits users to a third-party maps app. Next Steps To resolve this issue, please revise your app to give users the option to launch the native Apple Maps app.** But, our app requires POI(point of interest) on google maps for the service, thus, utilizing apple map's data causes disruption and mismatch of POI data causes issues on business logic (If our app's function was just loading apple map with marker on it, we could solve the issue..) Has anyone faced this rejection issue? We look forward to your kind comment, we are on the verge of going under due to the continuous rejections and errors from app store connect. We are desperate and we request f
0
0
674
Oct ’23
Parked Car in Maps
How is Parked Car triggered in Maps ?Just opened my maps on the iPhone, and found an entry in my favorites called 'parked car'. The previous 3 days running iOS 10, I didn't get this. Today for the first time.I read about this and found the feature pretty cool, but assumed it to be availble only with a CarPlay enabled car. My Mazda CX5 unfortunately has this not (yet) ... so I was surprised to see it. Is there any documentation how this is triggered?ThanksLutz
9
0
4.6k
Jun ’16
Mapping over a tuple
I currently have code that looks like this: let pxLeft = abs(left.spec.pixelsForDimension(left.dimension, imageSize: size)) let pxRight = abs(right.spec.pixelsForDimension(right.dimension, imageSize: size)) let pxTop = abs(top.spec.pixelsForDimension(top.dimension, imageSize: size)) let pxBottom = abs(bottom.spec.pixelsForDimension(bottom.dimension, imageSize: size))It's crying our for factorisation, and I'd really love to be able to do this:let (pxLeft, pxRight, pxTop, pxBottom) = (left, right, top, bottom).map { $0.left.spec.pixelsForDimension($0.dimension, imageSize: size) }But I can't, since I can't map over a tuple.Is there a Swifty solution for this sort of thing?
5
0
2.7k
Jun ’15
Callouts in Map Marker
Hi, does anyone have some short code to display a marker with callout? There simply is no updated documentation of it. They are either using old names or I just have not found any tutorial of it. I only found about MapMarker, but then it only shows a pin. on the map and no callout is possible. This is what I have Map(coordinateRegion: $mapRegion, showsUserLocation: true, annotationItems: markers) { marker in marker.location } Where marker.location is MarkerMap. So it displays a pin correctly, but how to add a callout and link to it? There are so many different names that start with MK. I am not sure if those are the latest. I figure MapAnnotation, MapMarker to name a few are the latest ones.
1
0
1.6k
Oct ’22
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
When will the calendar guide provide swift examples?
I have taught myself swift, but trying to make heads or tails around some of the frameworks has been a challenge. Most of the guides provided by apple are all based on obj-c and resources on the Internet, while growing are still lacking. I know my question won't get an updated document soon, so I ha r started going through learning c to make heads and tails of the framework documents.
2
0
521
Jun ’15
How to get a programming guide in a single pdf document ?
I used to download programming guides to get each guide as a single pdf document.I tried today to get new guides, such as File System Programming Guide ; I went to the Mac developer Library (/developer.apple.com/ library/mac/navigation/), found the guide in the list and opened it. I can browse through the document, but cannot find anymore the download as pdf button.Am I looking in the wrong place ? Or has the capabilioty been cancelled ?
2
0
1.3k
Feb ’16