File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -777,11 +777,16 @@ - (void)setupStateNotifications {
777
777
selector: @selector (didChangeOrientation: )
778
778
name: UIDeviceOrientationDidChangeNotification
779
779
object: nil ];
780
+
781
+ #pragma clang diagnostic push
782
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
780
783
[[NSNotificationCenter defaultCenter ]
781
784
addObserver: self
782
785
selector: @selector (didChangeUIOrientation: )
783
786
name: UIApplicationDidChangeStatusBarOrientationNotification
784
787
object: nil ];
788
+ #pragma clang diagnostic pop
789
+
785
790
#elif CLS_TARGET_OS_OSX
786
791
[[NSNotificationCenter defaultCenter ] addObserver: self
787
792
selector: @selector (willBecomeActive: )
Original file line number Diff line number Diff line change @@ -49,9 +49,13 @@ - (void)resume {
49
49
return ;
50
50
}
51
51
52
+ #pragma clang diagnostic push
53
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
52
54
connection = [[NSURLConnection alloc ] initWithRequest: [self originalRequest ]
53
55
delegate: self
54
56
startImmediately: NO ];
57
+ #pragma clang diagnostic pop
58
+
55
59
[self setConnection: connection];
56
60
57
61
// bummer we have to do this on a runloop, but other mechanisms require iOS 5 or 10.7
You can’t perform that action at this time.
0 commit comments