Merge pull request #39 from 433/version_check_fix

update version check to make #if work for iOS >= 4
This commit is contained in:
Olivier Poitrey 2011-10-25 04:00:34 -07:00
commit b3d7a5c450
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)
{