ianb821 / IBActionSheet

Customizable iOS 7 style UIActionSheet
MIT License
307 stars 65 forks source link

bug report #41

Closed LiewLi closed 8 years ago

LiewLi commented 8 years ago

in method "- (void)setUpTheActionSheet " there is a little bug that may be annoying when you perform "dismiss on tap outside" if (self.buttons.count) { height += (self.buttons.count * 44.5); }

==> if (self.buttons.count) { height += self.hasCancelButton ? (self.buttons.count-1)44.5 : (self.buttons.count \ 44.5); } fixs the problem when tapping on that useless empty space( u just cannot dismiss it)