Jan
22
2 days ago
Activity icon
issue

kevintianyao issue AFNetworking/AFNetworking

kevintianyao
kevintianyao

retain cycle-----startMonitoring

  • (void)startMonitoring { [self stopMonitoring];

    if (!self.networkReachability) { return; }

    __weak __typeof(self)weakSelf = self; AFNetworkReachabilityStatusBlock callback = ^(AFNetworkReachabilityStatus status) { __strong __typeof(weakSelf)strongSelf = weakSelf;

      strongSelf.networkReachabilityStatus = status;
      if (strongSelf.networkReachabilityStatusBlock) {
          strongSelf.networkReachabilityStatusBlock(status);
      }
    

    };

This may cause retain cycle,block contain self.block,Please review!Thank You

Jan
21
3 days ago
Activity icon
fork

litaihui forked AFNetworking/AFNetworking

⚡ A delightful networking framework for iOS, macOS, watchOS, and tvOS.
litaihui MIT License Updated
fork time in 3 days ago
Activity icon
fork

rewards-mobile forked AFNetworking/AFNetworking

⚡ A delightful networking framework for iOS, macOS, watchOS, and tvOS.
rewards-mobile MIT License Updated
fork time in 3 days ago
started
started time in 3 days ago
Jan
20
4 days ago
Activity icon
fork

qq1903520389 forked AFNetworking/AFNetworking

⚡ A delightful networking framework for iOS, macOS, watchOS, and tvOS.
qq1903520389 MIT License Updated
fork time in 4 days ago
Previous