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

ios13上设置自定义view宽度展示出来的不对 #35

Open
wangxiusen opened this issue May 29, 2020 · 1 comment
Open

ios13上设置自定义view宽度展示出来的不对 #35

wangxiusen opened this issue May 29, 2020 · 1 comment

Comments

@wangxiusen
Copy link

ios13上设置自定义view宽度展示出来的不对,例如我设置屏幕宽-32 可左右间距还是很大

@Levofloxacin
Copy link

HSAlertView *alertView = HSAlertView.new;

alertView.size = CGSizeMake(HWidth(304), HWidth(268));

SPAlertController *alertVC = [SPAlertController alertControllerWithCustomAlertView:alertView preferredStyle:SPAlertControllerStyleAlert animationType:SPAlertAnimationTypeExpand];

alertVC.minDistanceToEdges = 0;

[self presentViewController:alertVC animated:YES completion:nil];

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