jdg / MBProgressHUD

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

NSAssert in show or hide #265

Closed monishsyed closed 9 years ago

monishsyed commented 9 years ago

Hey,

It'll be great to put some non main queue assertion in the show and hide methods of MBProgressHUD. Lot of people out there are using third part libraries that don't guarantee the callback to be on main queue. Usually the hide method gets called from a non-main thread and eventually something bad happens that is hard to catch if the assertions are not there. I'll put up a PR soon for this. Let me know your feedback for the same.

joemasilotti commented 9 years ago

Shot in the dark here, but does this have anything to do with the library raising an exception on MBProgressHUD.m line 307?

-[MBProgressHUD autocapitalizationType]: unrecognized selector sent to instance 0x7fd25dd1d2c0

matej commented 9 years ago

Sounds reasonable. Added in 7782822.