This commit is contained in:
2025-11-21 20:59:39 +08:00
parent fd7b3a7f75
commit fd35c5c993
3 changed files with 20 additions and 4 deletions

View File

@@ -500,11 +500,15 @@ edgeSpacerMultiplier:(CGFloat)edgeSpacerMultiplier {
}]; }];
} }
// //
//
//
if (leftSpacer && rightSpacer) { if (leftSpacer && rightSpacer) {
// 1)
[leftSpacer mas_makeConstraints:^(MASConstraintMaker *make) { [leftSpacer mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.equalTo(firstChar).multipliedBy(edgeSpacerMultiplier); make.width.equalTo(rightSpacer);
}]; }];
// 2) edgeSpacerMultiplier
[rightSpacer mas_makeConstraints:^(MASConstraintMaker *make) { [rightSpacer mas_makeConstraints:^(MASConstraintMaker *make) {
make.width.equalTo(firstChar).multipliedBy(edgeSpacerMultiplier); make.width.equalTo(firstChar).multipliedBy(edgeSpacerMultiplier);
}]; }];

View File

@@ -276,6 +276,18 @@
#pragma mark - Network check & alert #pragma mark - Network check & alert
- (void)kb_checkNetworkAndShowAlertIfNeeded { - (void)kb_checkNetworkAndShowAlertIfNeeded {
//
static NSString *const kKBHasLaunchedOnce = @"KBHasLaunchedOnce";
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
if (![ud boolForKey:kKBHasLaunchedOnce]) {
return;
}
//
if ([UIApplication sharedApplication].applicationState != UIApplicationStateActive) {
return;
}
AFNetworkReachabilityStatus status = [AFNetworkReachabilityManager sharedManager].networkReachabilityStatus; AFNetworkReachabilityStatus status = [AFNetworkReachabilityManager sharedManager].networkReachabilityStatus;
// //