"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

UIViewController Rotation

Dear All, I used "UIViewController" to display a video on it based on the marker so i created: ActionViewController.h ActionViewController.m ActionViewController.xib and every thing working well but i need to autorotate it based on Iphone Orientation so i used this method in ActionViewController.m ----------------------------------------------- -(BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation { return YES && (interfaceOrientation ==UIInterfaceOrientationLandscapeRight); } ----------------------------------------------- but it doesn't work, although when i close the video the debugger write "ARParent: Rotating to Landscape Right" What can i do?

Hello Khaled1989 This is what I'm using, I've got mine setup to work only on landscape mode, but you can comment and uncomment whatever fits your needs: // Override to allow orientations other than the default portrait orientation. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientat

Khaled1989

Sun, 06/03/2012 - 09:58

I Tried it but it still doesn't work It is rotate only when i close the view, but i need to rotate it in iPhone rotation event How can catch the rotation function (event)?

Please forgive me im very new to all this. May I inquire as to how you were able make an appcontroller in Xcode that I can use with storyboarding? I would like to put an interface over the existing AR content.