Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[UINavigator] Conditionally check whether multi-tasking is supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Jul 23, 2010
1 parent d9712db commit c23c9e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Three20UINavigator/Sources/TTBaseNavigator.m
Expand Up @@ -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;
}
Expand Down

0 comments on commit c23c9e3

Please sign in to comment.