update version check to make #if work for iOS >= 4
This commit is contained in:
parent
17450bdf1f
commit
6cda5dcf4d
|
@ -59,7 +59,7 @@ static SDImageCache *instance;
|
||||||
name:UIApplicationWillTerminateNotification
|
name:UIApplicationWillTerminateNotification
|
||||||
object:nil];
|
object:nil];
|
||||||
|
|
||||||
#ifdef __IPHONE_4_0
|
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0
|
||||||
UIDevice *device = [UIDevice currentDevice];
|
UIDevice *device = [UIDevice currentDevice];
|
||||||
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)
|
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue