How to import Social framework only for iOS 6? I want to disable the Social Framework for other iOS versions. Currently I am trying this and I also tried to change the FrameWork to optional, But not running on iOS 5.1 simulator.
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)
{
#import <Social/Social.h>
}
Please tell how to check and run for both iOS 5 and iOS 6. Thanks.
See Question&Answers more detail:os