FacebookとTwitterの統合は初めてです。私はそれらを個々のバージョン、すなわちiOS4
とに統合することができiOS5
ます。
バージョンに基づいて、TwitterとFacebookの機能を統合する必要があるという条件を確認するのに苦労しています。
誰かがこれに関して私に提案できますか?
iOSのバージョンチェック
NSArray *versionCompatibility = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
if ( 5 == [[versionCompatibility objectAtIndex:0] intValue] ) { /// iOS5 is installed
// Put iOS-5 code here
} else { /// iOS4 is installed
// Put iOS-4 code here
}
ハッピーコーディング:)
編集1
したがって、これでもiOSバージョンを見つけることができます
if (NSClassFromString(@"TWTweetComposeViewController") != nil) { /// iOS5 is installed
// Put iOS-5 code here
} else { /// iOS4 is installed
// Put iOS-4 code here
}