-
Notifications
You must be signed in to change notification settings - Fork 1
/
Tweak.xm
37 lines (34 loc) · 796 Bytes
/
Tweak.xm
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
26
27
28
29
30
31
32
33
34
35
36
37
%hook UINavigationBar
-(id)initWithCoder:(id)arg1 {
UINavigationBar *bar = %orig;
if ([bar shadowImage] == nil) {
bar.shadowImage = [[UIImage alloc] init];
}
return bar;
}
-(id)initWithFrame:(CGRect)arg1 {
UINavigationBar *bar = %orig;
if ([bar shadowImage] == nil) {
bar.shadowImage = [[UIImage alloc] init];
}
return bar;
}
%end
%hook UITabBar
-(id)initWithCoder:(id)arg1 {
UITabBar *bar = %orig;
if ([bar shadowImage] == nil) {
bar.shadowImage = [[UIImage alloc] init];
bar.clipsToBounds = true;
}
return bar;
}
-(id)initWithFrame:(CGRect)arg1 {
UITabBar *bar = %orig;
if ([bar shadowImage] == nil) {
bar.shadowImage = [[UIImage alloc] init];
bar.clipsToBounds = true;
}
return bar;
}
%end