I use Reachability in my fast-paced project. I had the code below in AppDelegate
NSNotificationCenter.defaultCenter().addObserver(self, selector: "reachabilityChanged:", name: ReachabilityChangedNotification, object: reachability) reachability.startNotifier()
He calls
func reachabilityChanged(note: NSNotification) { }
But my problem is that it is called for the whole request. That is, I download images from the server, so when the network availability gets a change, this is the get call method for the whole request. I want this method to be called only once.
I also tried adding this notification and method to the ViewController, but this did not work.
Any help would be appreciated. thanks in advance
source share