Jump to content

- - - - -

SCPresentationMode PUSH preferred size

  • Please log in to reply
No replies to this topic

#1 ozie



  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169

Posted 12 February 2014 - 04:31 AM

i am using the customPresentDetailViewController delegate which i then open the detailViewController into a custom popover view.

when the detailViewController is passed in, I set the preferredSize to set the size i want in the popover view


when i have a selection cell on the detail view, the push mode pushes the selection view, but it must be modal or something, as it makes the popover spread far and wide


In SCTableViewCell.m line 889 the case switch for PUSH

case SCPresentationModePush:
      [navController pushViewController:detailViewController animated:YES];

i would like to see something like 

case SCPresentationModePush:
      detailViewController.preferredContentSize = self.ownerTableViewModel.viewController.preferredContentSize;
      [navController pushViewController:detailViewController animated:YES];

this then gives the new pushed detail view a preferred size reference of the parent

  • VewSnigninero4f likes this

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users