I'm new to iOS development.
I follow the tutorial from Ray Wenderlich to create a little location based AR app. However, the tutorial uses an AR Toolkit which has not been updated for a while. The UIAccelerometer it uses has already been deprecated since iOS 5, so when I try to run it on my iPhone (iOS 7.0.4), the Xcode says that there are 3 warnings, and all of them are caused by UIAccelerometer.
The result it leads to is that all the marks stay at the center of the screen one above another, and the tilt does not work at all.
According to my research, I guess what I need to do is to use CMMotionManager instead of UIAccelerometer, but as I said before, I'm totally new to iOS development and have no idea how to replace it.
Here is the source code. I add some little functions such that you can manually add locations that are not in the Google database, but I don't think it is these functions that result in the problem.
Thanks for you help in advance!
Try this link: https://www.inkling.com/read/learning-ios-programming-alasdair-allan-2nd/chapter-9/the-core-motion-framework
I'm learning a few tidbits that translate some-what with the UIAccelerometer
i.e.
could become
Setting manual update intervals like
you can have
and releasing the delegate
would now be
Also from the link, I ended up doing something like this: