jdg / MBProgressHUD

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

customView #424

Closed XiaoJuanW closed 6 years ago

XiaoJuanW commented 8 years ago

Hi, I have a issue. Is that the mode customView can only be imageView? I define my own view, it dosn't show ...

zeku2022 commented 8 years ago

It seems any customView wouldn't show in right frame...

XiaoJuanW commented 8 years ago

sorry, what's the meaning of 'in right frame' ?

zeku2022 commented 8 years ago

421

when the frame set or changed,the customView wouldn't change.

ghost commented 8 years ago
  1. Check if you have set the hud mode to MBProgressHUDModeCustomView.
  2. See #432 .
aryaxt commented 7 years ago

This broke on 1.0. prior to that customView was working for me

aryaxt commented 7 years ago

It looks like indicator.translatesAutoresizingMaskIntoConstraints = NO;is causing the issue for me. Commenting out this line fixed the issue

matej commented 6 years ago

You need to make sure intrinsicContentSize is implemented on your custom view and returning an appropriate size since 1.0. It's needed for AutoLayout to correctly position the custom view.