puzhibing
2026-07-24 a0bc9aaf968a81eba1321008be66d62c702e8fc3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
//  XcodeIOS16Fixer.m
//  XWProject
//
//  Created by 无故事王国 on 2022/10/28.
//  Copyright © 2022 yangwang. All rights reserved.
//
 
#import "XcodeIOS16Fixer.h"
#import <objc/runtime.h>
 
@implementation XcodeIOS16Fixer
+(void)load{
    Class cls = NSClassFromString(@"_UINavigationBarContentViewLayout");
    SEL selector = @selector(valueForUndefinedKey:);
    Method impMethod = class_getClassMethod([self class], selector);
    if (impMethod){
        class_addMethod(cls, selector, method_getImplementation(impMethod), method_getTypeEncoding(impMethod));
    }
}
 
-(id)valueForUndefinedKey:(NSString *)key{
    return nil;
}
@end