jdg / MBProgressHUD

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

Button issue #480

Open twinst opened 7 years ago

twinst commented 7 years ago
/**
 * A button that is placed below the labels. Visible only if a target / action is added. 
 */
@property (strong, nonatomic, readonly) UIButton *button;

The button is always showing, although target / action is not added.

JonnyWorld commented 7 years ago

I encountered the same problem,what should i do?

BruceConner commented 7 years ago

I got this problem too

ChenTF commented 7 years ago

I got this problem too

qigeligedongdongqiang commented 7 years ago

I got this problem too

matej commented 6 years ago

I'd need some reproduction steps here. MBHudDemoViewController.m has a bunch of examples and only the ones supposed to show the button show it. Can you modify one of those so it shows this issue?

GWesley commented 6 years ago

You should check the button's target number in (intrinsicContentSize) method

po self.allTargets

In my case i found a statistical lib add a touch event to all button at runtime