update version check to make #if work for iOS >= 4

This commit is contained in:
Ilya Samartsev 2011-10-25 11:02:50 +04:00
parent 17450bdf1f
commit 6cda5dcf4d
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ static SDImageCache *instance;
name:UIApplicationWillTerminateNotification
object:nil];
#ifdef __IPHONE_4_0
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
UIDevice *device = [UIDevice currentDevice];
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)
{