objective c - iPhone - Dismiss View problem -


I'm looking at some augmented reality examples using ARKIT. I try to dismiss it to try to add a button at the top of the camera view, so it goes to its previous screen when I try to dismiss the scene, the camera stops and the camera shutter off animation Prevents / stops at (At this point I can still see the button, if I press it again then it crashes the app).

The current setup looks like this: see main menu - & gt; ARViewController - & gt; Augmented Reality Controller Maybe someone can tell me where I'm going wrong? Or how easy it is to close all the scenes and display the main menu.

Here are some code:

Main Menu

  if ([ARKit Device Spypers]) {ARViewController * viewController = [[ARViewController alloc] initWithDataSource: self]; ViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [Self-Present Model View Controller: Animated Visual Controller: Yes]; [See Controller Release]; }   

ARViewController

  .h Revised Realtor Controller * Aggregator; .m - (zero) loadView {self.agController = [[Recurrent Realtil controller alloc] initWithViewController: Self];} - (zero) viewDid you: (BOOL) animated {[Agri Controller displayAR]; } - (Zero) Scan button button pressed {// action when button is pressed [Agreg controller hideAR]; // Dismiss the camera [Dismiss yourself Model Vieux controller permission: Yes]; // Delete the current view)   

Augmented Reality Controller

  - Hide (zero) {{[Location Location Manager] Stop Updating Heading]; [[Self-Position Manager] Stop Updating Location]; [[Self Accelerator Manager] Release]; [RootviewConverterDiscardModal Visual ControllerUnited: Yes]; } // It is necessary to start showing the camera of this projected reality toolkit - (zero) displayR {[RootviewControlor presentModal VUI controller: [Self camera controller] Animated: No]; [DisplayView setframe: [[[self camera controller] scene] border]]; }   

(the original source code of the project)

Not sure Please make sure that this can solve your problem, but you should try to sack the ModelView Controller only once and even tht

  [self dismissModalViewControllerAnimated: Yes] using;   

Hope this will help ...

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -