소스 검색

fix ios 14.0.1 crash (temp fix)

pull/3/head
Burrit0z 3 년 전
부모
커밋
e7f00664cd
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      KAIBatteryCell.mm

+ 5
- 1
KAIBatteryCell.mm 파일 보기

@@ -16,7 +16,11 @@
UIView *blurPlatter = [[UIView alloc] init];
if (bannerStyle == 1) {
if (kCFCoreFoundationVersionNumber > 1600) {
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
@try {
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
} @catch (NSException *exc) {
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleRegular]];
}
} else if (kCFCoreFoundationVersionNumber < 1600) {
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
}

Loading…
취소
저장