After Reachability adds the notification of network monitoring, neither the network disconnection nor the network connection will receive the notification. Please advise

  ios, question

The added called startNotifier method will only be executed once. why?
The code is as follows:
– (void)viewDidLoad
bracket
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

Reachability    *reach = [Reachability reachabilityForInternetConnection];
 
 self.reach = reach;

// NSLog(@ “Percent D”, [REACH CURRENT CHABILITYSTATUS]);

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkChanged:) name:kReachabilityChangedNotification object:nil];
 
 [self.reach startNotifier];

bracket

  • (void)networkChanged:(NSNotification *)sender
    bracket
    NSLog(@ “percent @”,sender.object);
    bracket

[[Reachability reachabilityForInternetConnection] startNotifier];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(networkDidChanged:) name: kReachabilityChangedNotification object: nil];

I’m listening to didFinishLaunchingWithOptions inside again.