Note that there are some explanatory texts on larger screens.

plurals
  1. POStil facing the problem in Orientation in iphone
    text
    copied!<p>In my application I have 15 screens in that i m using UIViewController for all screens and in all screens i m using the below way to call other screen :-</p> <p>AppDelegate *appRefre = (AppDelegate *)[[UIApplication sharedApplication]delegate]; [self.navigationController pushViewController:appRefre.frmReferencesLink animated:YES];</p> <p>And the below code is activated in all screen for orientation to control the user to switch from one orientation to other mode</p> <ul> <li>(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationPortrait) { return YES; }<br> else { return NO;</li> </ul> <p>} }</p> <p>But when i run my application in iPhone device my application gets terminated when i physically rotate my iphone device from UIInterfaceOrientationPortrait to UIInterfaceOrientationPortraitUpsideDown or UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight.</p> <p>And One more things is that when my application lauch i used following code for launching my appliaction :-</p> <p>1) I made a pointer in mydelegate.h file:</p> <p>UINavigationController *navigationController;</p> <p>Then synthesize its property @property(nonatomic,retain)UINavigationController *navigationController</p> <p>2) In mydelegat.m I Wrote </p> <p>@synthesize navigationController;</p> <ul> <li>(void)applicationDidFinishLaunching:(UIApplication *)application { navigationController = [[UINavigationController alloc] initWithRootViewController:DefaultViewLink];<br> [window addSubview:navigationController.view]; [window makeKeyAndVisible];</li> </ul> <p>} 3) In above point DefaultView is launch first and gets remove from view and then actual my appliaction come into picture.</p> <p>So exactly what i want i want my appliaction to be in portrait mode for all screens i dont want my appliaction will switch to other mode.It remains the same as in portrait mode after rotation to any other mode.</p> <p>Please help me out its very urgent.</p> <p>Thanks in Advance and humble request to help me out</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload