Welcome, Guest
Username Password: Remember me

iPad is 'forced' to Portrait mode
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: iPad is 'forced' to Portrait mode

iPad is 'forced' to Portrait mode 1 year, 8 months ago #1

Using an SCArrayOfObjectsSection, when the modal view controller is presented on an iPad the display is 'forced' to portrait mode. Is there an attribute I could set to YES that would act as the return from the method - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation; in the modal view controller?
  • panamind
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Karma: 4

Re: iPad is 'forced' to Portrait mode 1 year, 8 months ago #2

Hi Gary:

All you need is add the shouldAutorotateToInterfaceOrientation: method in your view controller as you normally would in any iPad application.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: iPad is 'forced' to Portrait mode 1 year, 8 months ago #3

Hi Tarek

I had to temporarily place the shouldAutorotateToInterfaceOrientation: method in the SCTableViewController class because SCT uses this class to create and present a modal view when adding. We don't pass our own view controller (unless I'm overlooking that).

Also, when presenting this modal view on an iPad, instead of just using presentModalViewController: as you would on an iPhone or iPod, you should detect it's an iPad an present the modal view by:

 
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:controller];
[navController setModalPresentationStyle:UIModalPresentationFormSheet];
[navController setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
[self presentModalViewController:navController animated:YES];
 


Otherwise the view takes up the entire screen.
  • panamind
  • OFFLINE
  • Senior Boarder
  • Posts: 77
  • Karma: 4

Re: iPad is 'forced' to Portrait mode 1 year, 8 months ago #4

Thanks a lot Gary, will implement that and send you ASAP.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: iPad is 'forced' to Portrait mode 1 year, 8 months ago #5

Dear Gary,

We have implemented all the fixes we've discussed earlier. I'll send you our latest RC version, please tell me if it works well for you. Thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: iPad is 'forced' to Portrait mode 1 year, 7 months ago #6

I too am integrating Sensible tables into an iPad app and have a similar issue. Is it possible to have the RC version or when will the next version be released ?? Many thanks. Phil.
  • monsta
  • OFFLINE
  • Expert Boarder
  • Posts: 130
  • Karma: 2
  • Page:
  • 1
  • 2
Time to create page: 0.93 seconds