[linters] Restrict the remove observer check to when target ios sdk version is greater or equal than 9.0
Reviewed By: ddino Differential Revision: D5670652 fbshipit-source-id: bb26abfmaster
parent
a3309926b3
commit
30d2822846
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface RemoveObserverInGivenSDKTest2 : NSObject
|
||||
|
||||
@property(strong) NSNotificationCenter* nc;
|
||||
|
||||
@end
|
||||
|
||||
@implementation RemoveObserverInGivenSDKTest2
|
||||
|
||||
- (void)foo:(NSMutableDictionary*)dict {
|
||||
self.nc = [NSNotificationCenter defaultCenter];
|
||||
[self.nc addObserver:self selector:@selector(foo:) name:nil object:nil];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in new issue