SPAlertController icon indicating copy to clipboard operation
SPAlertController copied to clipboard

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

Open wangxiusen opened this issue 5 years ago • 1 comments

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

wangxiusen avatar May 29 '20 10:05 wangxiusen

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];

Levofloxacin avatar Apr 07 '21 03:04 Levofloxacin