Permalink
Browse files

[UINavigator] Conditionally check whether multi-tasking is supported.

  • Loading branch information...
jverkoey committed Jul 23, 2010
1 parent d9712db commit c23c9e353d659672d2421edcd679b268a919765c
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/Three20UINavigator/Sources/TTBaseNavigator.m
@@ -74,10 +74,12 @@ - (id)init {
selector:@selector(applicationWillLeaveForeground:)
name:UIApplicationWillTerminateNotification
object:nil];
[center addObserver:self
selector:@selector(applicationWillLeaveForeground:)
name:UIApplicationDidEnterBackgroundNotification
object:nil];
if (nil != &UIApplicationDidEnterBackgroundNotification) {
[center addObserver:self
selector:@selector(applicationWillLeaveForeground:)
name:UIApplicationDidEnterBackgroundNotification
object:nil];
}
}
return self;
}

0 comments on commit c23c9e3

Please sign in to comment.