diff --git a/SDImageCache.m b/SDImageCache.m index d3583f59..666be4fe 100644 --- a/SDImageCache.m +++ b/SDImageCache.m @@ -51,6 +51,7 @@ static SDImageCache *instance; name:UIApplicationWillTerminateNotification object:nil]; + #ifdef __IPHONE_4_0 UIDevice *device = [UIDevice currentDevice]; if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported) { @@ -60,6 +61,7 @@ static SDImageCache *instance; name:UIApplicationDidEnterBackgroundNotification object:nil]; } + #endif } return self;