-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arkit in a navigation controller #4
Comments
I'll look into this and come up with some best practices for display. |
There is a version of ARKit I wrote for iWVU that does this. Check out JaredCrawford/iWVU to see how I did it. I would commit it back, but I'm swamped right now. |
The relevant commit is sorry about the other odd files in there. The main thing that was necessary was to remove the camera overlay. |
Fantastic, thanks. You are doing some great work! |
Hi, I'm running into the same problem and have some trouble to find the answer in your files... would that be possible to show me how to do it? thanks a lot! |
ARKit is woefully out of date and probably not App Store compatible anymore. Starting with 4.0, Apple gives access to a camera overlay view controller in UIKit. I don't know what it's called off the top of my head, but I know that it's new in 4.0 so I would start there. Sorry if you've put a lot of work into ARKit, but I think it's been abandoned by all its previous users at this point. |
thanks for the answer! Actually I was just playing with it for a small project... I got it working on iOS 4 (if I add the ARGeoViewController to the app's window), but like djgagnon said it just shows a white screen if I use a navigation and view controller. So the problem probably doesn't have anything to do with iOS 4. Isn't there a quick fix for that? I just need it to work for a demo... Alternatively, do you know other similar libraries for iOS 4? Thanks! |
Actually JaredCrawford, the overlay view was available for AppStore sanctioned use in 3.1, which is what ARKit was designed for. I haven't ever tried to make ARKit work in a navigation controller. I didn't realize others would try that! It probably stems from the face that under the hood it is using UIImagePickerController for the camera view. It's pretty picky about where it gets displayed. Let us know if you figure anything out and I can update the code to work in all navigation situations. |
I have the same problem, i can´t integrate arkit in my app because i can´t make work in a navigation controller . Zac can you make this change in the code? There are others than cointinuos improving your code, but nobody is fixing the problem with the navigation controller :( Thanks |
Check out the samples on this fork. It's been added to a normal view now so it would not be a problem to adding it to a navigation controller. |
I can add the ar kit to work if I add the ARGeoViewController to my app's window, but it only shows white if I add it to another view controller (to put it in a navigation controller).
Is this an artificat of the camera access I do I just need to learn more about UIViews and ViewControllers?
The text was updated successfully, but these errors were encountered: