UIGestureRecognizerを初めて使用していますが、アプリをiOS3.0以降で実行したいと考えています。AppleはライブラリがiOS3.2以降で利用可能であると明確に述べているので、私は次のコードを使用しました。
// Make sure that Gesture recognition technology is supportted by the device SDK version
if ([UIGestureRecognizer instancesRespondToSelector:@selector(initWithTarget:action:)])
{
[self initGestureRecognizers];
}
驚いたことに、SDK3.0を実行している唯一のターゲットでアプリを実行すると、正常に動作します。
条件を次のように置き換えました。
if ([[[UIDevice currentDevice] systemVersion] compare:@"3.2"] != NSOrderedAscending)
{
[self initGestureRecognizers];
}
コメントをお願いします。
ありがとう