SnapKit / Masonry

Harness the power of AutoLayout NSLayoutConstraints with a simplified, chainable and expressive syntax. Supports iOS and OSX Auto Layout
MIT License
18.06k stars 3.15k forks source link

Masonry (1.1.0) 使用UIView mas_margin 崩溃 没有找到该方法 我的系统最低支持10.0 #538

Open openman1992 opened 6 years ago

openman1992 commented 6 years ago

使用方式: make.top.equalTo(weakself.yzwebview.mas_topMargin); 崩溃日志 [YZWebView mas_topMargin]: unrecognized selector sent to instance 0x108d88fc0 手机系统 10.0.1

dengfeng520 commented 5 years ago

在pod中设置iOS Deploymentn Target为iOS 8即可

参考: pod导入Masonry使用Margin闪退问题

Set deployment target for CocoaPods's pod

TheLittleBoy commented 4 years ago

pod 中加上 use_frameworks! 就好使了