facebookarchive / KVOController

Simple, modern, thread-safe key-value observing for iOS and OS X.
Other
7.34k stars 925 forks source link

Add the code below and it works fine: #147

Closed lawchingman closed 4 years ago

lawchingman commented 4 years ago

Add the code below and it works fine:


- (void)viewDidDisappear:(BOOL)animated {
    [super viewDidDisappear:animated];

    // fix: iOS 10 crash
    [self.KVOControllerNonRetaining unobserveAll];
}

_Originally posted by @AlfyYan in https://github.com/facebook/KVOController/issues/140#issuecomment-575550115_