-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Layout guides and iOS 9 support #214
Conversation
…er for the layout guides.
…out guide. Added seperate view and item to MASViewAttribute.
8a5f8e7
to
85a5e18
Compare
@CraigSiemens Awesome work! Sorry for the delay! |
Layout guides and iOS 9 support
Would you mind doing a new CocoaPods release with this in? |
This is now on cocoapods in v0.6.2 |
Nice one, thanks @cloudkite 😊 |
@cloudkite I'm still seeing the issue
in 0.6.2 when I do this
Any suggestions? |
That way no longer works in iOS 9. You will need to use the new layout guide attributes added to UIViewController by this pull request. make.top.equalTo(self.mas_topLayoutGuide).offset(10); |
Ah, got it thanks |
I tried
|
Casting the It should look like this make.top.equalTo(self.mas_topLayoutGuide).offset(10); There is also an example in MASExampleLayoutGuideViewController.m |
Thanks. Sadly, we are using a closed-source third party SDK that uses Masonry, so we can't do anything about it. But just now we found a way to swizzle the required methods into |
For #207
This adds properties on UIViewController to get the MASViewAttribute for top and bottom layout guides. This works on iOS 7, 8 and 9.