Xcode se queja "Estos siempre se evaluará como true" no es necesario "&"

This commit is contained in:
Daniel Riera 2015-12-01 20:24:42 +01:00
parent 2538983691
commit ee9d16cb27

View File

@ -49,7 +49,7 @@ NSString *const kAPPBackgroundEventFailure = @"failure";
{ {
NSNotificationCenter* listener = [NSNotificationCenter defaultCenter]; NSNotificationCenter* listener = [NSNotificationCenter defaultCenter];
if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) { if (UIApplicationDidEnterBackgroundNotification && UIApplicationWillEnterForegroundNotification) {
[listener addObserver:self [listener addObserver:self
selector:@selector(keepAwake) selector:@selector(keepAwake)