This method is called from ARViewController createAnnotationViews() and getAnyAnnotationView(), i suggest you add a breakpoint inside àr(_: viewForAnnotation:) and if it gets hit you move the call stack up into the calling method and check the activeAnnotations property of ARViewController.
Hi, sorry to hear that. Unfortuneltay i don’t know if there is a way to see the old version of this tutorial, but maybe @raywenderlich or @samdavies can tie you an answer.
Great tutorial. is there a way to add a given angle in degrees (elevation) for each POI so that the user has to tilt the phone up to the sky to see the POI? stars for example.
/Users/robert/Documents/XCode Swift Projects/Places/Places/HDAugmentedReality/Classes/ARViewController.swift:915:44: ‘devices(withMediaType:)’ was deprecated in iOS 10.0: Use AVCaptureDeviceDiscoverySession instead.
I can really use this idea. Thanks for the tutorial.
Well, I hate to say this, but this tutorial - or at least the downloadable project, does not run “out of the box”
Firstly, it has that Depreciated warning in it. And i’m using the very latest iOS and XCode etc. and whn I run it on my iPhone SE, I get this.
2017-01-25 11:39:50.537577 Places[4443:4704805] [LogMessageLogging] 6.1 Unable to retrieve CarrierName. CTError: domain-2, code-5, errStr:((os/kern) failure)
Load pois
fatal error: unexpectedly found nil while unwrapping an Optional value
2017-01-25 11:39:56.705175 Places[4443:4704750] fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb)
I use it and it work very well. For now I’m working on an astronomical app. I use complex lib and I’m now. I can determine the position of a planet (or sun or moon etc.) in relation to the position of the device and the current Date(). I have an azimuth and an altitude. My goal is to show this position on an AR view.
I read the lib use in this project doesn’t use altitude. Do you any suggestion about this ?
@pierredrks Excellent tutorial! I have a use case like instead of google places POI, I have a collection of lat long of fire hydrants. So I have a question like
If the lat long of the marker is offset by few meters from the actual Fire hydrant so the user tries to drag and drop the marker on top of the actual fire hydrant , how to fetch the new lat long(the correct lat long) of the marker?
@pierredrks
Nice tutorial, I am learning a lot of this here but… am I the only one who does not get any POI in the augmented view here?
There are several POI’s in the map view but when I hit camera none af them showes up?
I followed the tut, downloaded the final, add my API key.
Thx, Harry
Indeed I do see the individual POIs in AR with their correct annotations. Also changed to miles for here in the US. Went out for a drive later and noticed a scaling problem, So a bit of debugging still, as it might have left some code I was playing with…