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

Wrong margins with iOS 8.1 and 8.2 #39

Open
winkelsdorf opened this issue Apr 13, 2016 · 0 comments
Open

Wrong margins with iOS 8.1 and 8.2 #39

winkelsdorf opened this issue Apr 13, 2016 · 0 comments

Comments

@winkelsdorf
Copy link

When using your demo as is with current Xcode 7.3 and e.g. iOS Simulator iPad Air 2 on iOS 8.1 (12B411), the margins are wrong compared to the separator insets:

screenshot 2016-04-14 01 27 03

After trying this I used the nib instead and made the following adjustments (as you had hardcoded +/- 15 points as margins), which should work:

CellIdentifier: Preserve Superview margins checked
Content View: Preserve Superview margins checked
Leading/Trailing Constraints: Each leading/trailing set to constant 0, but pinned to superview's margin instead of superview

Expected:
Margins automatically adjusted

Actual:

screenshot 2016-04-14 01 31 10

screenshot 2016-04-14 01 33 12

I am trying this for about a week (!), do you know of any official way to get the margins right with iOS 8.1 and 8.2? Btw: Margins are broken when used in Form Sheets with iPhone 6+ in Landscape with iOS 9.x, too (they differ from the separator insets as well).

Any idea?

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

1 participant