When I run my app with social framework for facebook on ios5 it crashes, and I can understand that. Is there a way to import it just if the device is ios6?
I tried this, where ver_float is the ios version:
if (ver_float >= 6.0) {
#import <Social/Social.h>
}
But the app fails to run if I remove the #import from the top of the code page.
Just make sure you set the Social.framework as optional under Build Phases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With