Commit 1a518bb1 authored by Carola's avatar Carola

adjust methodname and calls of that method

parent 441cf518
......@@ -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];
......
......@@ -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];
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment