You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
继承MMPopupView自定义的view,在执行show或showWithBlock之后,要么使用masonry设置其宽高约束;要么能通过内容约束计算出view的大小。不能直接设置frame。举个例子:
@interface FKGenderView : MMPopupView
@EnD
@implementation FKGenderView
[self showWithBlock:nil];
}
(void)showWithBlock:(MMPopupCompletionBlock)block {
[super showWithBlock:block];
[self mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.equalTo(self.superview);
}];
}
@EnD
[customPopupVIew mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.height.equalTo(self.superview);
}];
The text was updated successfully, but these errors were encountered: