Преглед на файлове

adjust methodname and calls of that method

Carola Nitz преди 9 години
родител
ревизия
1a518bb181
променени са 3 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 1 1
      Sources/VLCHTTPUploaderController.m
  2. 4 4
      Sources/VLCServerListViewController.m
  3. 1 1
      Sources/VLCWiFiUploadTableViewCell.m

+ 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;
 }