Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MasterView-Nav view width is bigger than splitPosition at startup #29

Open
bytor99999 opened this issue Dec 16, 2010 · 3 comments
Open

Comments

@bytor99999
Copy link

I set the default splitPosition to 250.00 But the NavController that I add to the masterview is not reflecting that width. It is much bigger, so the Header and TableView in the NavController is too wide and therefore doesn't display completely. It gets cut off at 250.00. But if I rotate, then the Nav view and tableview in the master update to the correct width.

@bytor99999
Copy link
Author

Odd thing is I can't see anything in your code that might even remotely cause this problem. Maybe I can make sure the XIB has the width correctly for the view controller.

@bytor99999
Copy link
Author

The XIB for the TableView is set to width of 250, and the NavController is created in code adding the table. So it should be correct at 250, based on wheat I have and your code, I don't see how this might be fixed.

@maikg
Copy link

maikg commented Mar 14, 2011

The splitPosition property is constrained to certain limits by default. Implement the following delegate method to override those limits:

- (float)splitViewController:(MGSplitViewController *)svc constrainSplitPosition:(float)proposedPosition splitViewSize:(CGSize)viewSize

You could implement this method to always return the proposedPosition. That way, you have complete control over the split position by setting the splitPosition property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants