Note that there are some explanatory texts on larger screens.

plurals
  1. POViewDeck sizing of left UIViewController
    primarykey
    data
    text
    <p>I am using <a href="https://github.com/Inferis/ViewDeck" rel="nofollow">ViewDeck</a> to power the sliding UI in my iPad app but i'm hitting a few problems. </p> <p>I want to size the leftViewController to a specific size regardless of the rotation. The code I have to setup ViewDeck is as follows oh and i'm using storyboards.</p> <pre><code> - (id)initWithCoder:(NSCoder *)aDecoder { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; UINavigationController *navigationController = [storyboard instantiateViewControllerWithIdentifier:@"leftViewController"]; JWTimerGroupsViewController *timerGroupsViewController = navigationController.viewControllers[0]; IISideController *constrainedSizeLeftViewController = [[IISideController alloc] initWithViewController:navigationController]; JWMainTableViewController *middleViewController = (JWMainTableViewController *)[storyboard instantiateViewControllerWithIdentifier:@"middleViewController"]; [timerGroupsViewController setDelegate:middleViewController]; self = [super initWithCenterViewController:middleViewController leftViewController:constrainedSizeLeftViewController]; self.centerhiddenInteractivity = IIViewDeckCenterHiddenNotUserInteractiveWithTapToClose; /* This below IS NOT the size of the left view controller? Just seems odd that it isn't */ [super setLeftSize:200]; [super setSizeMode:IIViewDeckViewSizeMode]; if (self) { // Add any extra init code here } return self; } </code></pre> <p>The <em>setLeftSize</em> appears to set the topViewControllers width? Which then makes the left view controller size inconsistent when rotating.</p> <p>Also I'm seeing some really terrible blocky shadows when the topVC is opened and then the device is rotated.</p> <p>Is it possible to fix the size of the left ViewController and the amount the top VC opens in ViewDeck?</p> <p><strong>EDIT</strong></p> <p>I have just found a reference to this method:</p> <pre><code> IISideController *constrainedSizeLeftViewController = [[IISideController alloc] initWithViewController:navigationController constrained:200]; </code></pre> <p>Which DOES constrain the left viewcontroller to a specific value. But now there is still no way to have the top VC open to that width?!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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