jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

customView subviews show wrong location #547

Open SmatMing opened 6 years ago

SmatMing commented 6 years ago
default default
luyud commented 6 years ago

is iOS 12? I got this with iOS 12 and I use Masonry

SmatMing commented 6 years ago

你看我发截图里边,如果customView没有子视图,就只是一个imgV或者lab的话是没有问题的,但是如果我在customView添加了子视图,在设置 hud.customView = vie;之后,内部会调用setNeedsUpdateConstraints,然后就会导致子视图位置有错,这个时候就需要在hud.customView= vie之后通过Masonry在重新设置hud.customView基于父视图的约束位置才能显示正确。

原始邮件 发件人:Luyunotifications@github.com 收件人:jdg/MBProgressHUDMBProgressHUD@noreply.github.com 抄送:那小子真坏fzyxuming@163.com; Authorauthor@noreply.github.com 发送时间:2018年9月18日(周二) 13:56 主题:Re: [jdg/MBProgressHUD] customView subviews show wrong location(#547)

is iOS 12? I got this with iOS 12 and I use Masonry — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hahaGitHub commented 4 years ago

i met this problem and implement intrinsicContentSize.And then ok. 截屏2020-04-02上午11 52 15