jdg / MBProgressHUD

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

Add support for app extensions. #356

Closed jpchmura closed 8 years ago

jpchmura commented 8 years ago

MBProgressHUD will not build when targeting an app extension due to calling [UIApplication sharedApplication] which is annotated as NS_EXTENSION_UNAVAILABLE. We've implemented a fix by calling sharedApplication with performSelector instead of calling it directly. This should be safe because this particular code is conditionally executed on iOS < 8 which is before app extensions were introduced.

matej commented 8 years ago

Fixes #231