Skip to content

Commit 1b0cf3a

Browse files
author
Olivier Poitrey
committed
Add a compile time condition in order to compile with Base SDK pre iOS4
1 parent d128c27 commit 1b0cf3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SDImageCache.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ - (id)init
5151
name:UIApplicationWillTerminateNotification
5252
object:nil];
5353

54+
#ifdef __IPHONE_4_0
5455
UIDevice *device = [UIDevice currentDevice];
5556
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && device.multitaskingSupported)
5657
{
@@ -60,6 +61,7 @@ - (id)init
6061
name:UIApplicationDidEnterBackgroundNotification
6162
object:nil];
6263
}
64+
#endif
6365
}
6466

6567
return self;

0 commit comments

Comments
 (0)