ソースを参照

adjust methodname and calls of that method

Carola Nitz 9 年 前
コミット
1a518bb181

+ 1 - 1
Sources/VLCHTTPUploaderController.m

@@ -55,7 +55,7 @@
             name:UIApplicationDidBecomeActiveNotification object:nil];
         [center addObserver:self selector:@selector(applicationDidEnterBackground:)
             name:UIApplicationDidEnterBackgroundNotification object:nil];
-        [center addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
+        [center addObserver:self selector:@selector(netReachabilityChanged) name:kReachabilityChangedNotification object:nil];
         
         BOOL isHTTPServerOn = [[NSUserDefaults standardUserDefaults] boolForKey:kVLCSettingSaveHTTPUploadServerStatus];
         [self changeHTTPServerState:isHTTPServerOn];

+ 4 - 4
Sources/VLCServerListViewController.m

@@ -171,11 +171,11 @@
     _reachability = [Reachability reachabilityForLocalWiFi];
     [_reachability startNotifier];
 
-    [self netReachabilityChanged:nil];
+    [self netReachabilityChanged];
 
     _myHostName = [[VLCHTTPUploaderController sharedInstance] hostname];
 
-    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
+    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged) name:kReachabilityChangedNotification object:nil];
 }
 
 - (void)viewWillDisappear:(BOOL)animated
@@ -195,10 +195,10 @@
     [_activityIndicator stopAnimating];
     [super viewWillAppear:animated];
 
-    [self netReachabilityChanged:nil];
+    [self netReachabilityChanged];
 }
 
-- (void)netReachabilityChanged:(NSNotification *)notification
+- (void)netReachabilityChanged
 {
     if (_reachability.currentReachabilityStatus == ReachableViaWiFi) {
         [self _startUPNPDiscovery];

+ 1 - 1
Sources/VLCWiFiUploadTableViewCell.m

@@ -32,7 +32,7 @@
         [self setupCell];
         [self setupConstraints];
         [self updateHTTPServerAddress];
-        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged:) name:kReachabilityChangedNotification object:nil];
+        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachabilityChanged) name:kReachabilityChangedNotification object:nil];
     }
     return self;
 }