Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

关于编写tweak.xm内容的问题

$
0
0

@wanYiJun wrote:

%hook SpringBoard
- (void)menuButtonDown:(id)down {
%orig;
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary WithContents OfFile:@"/var/mobile/Library/Preferences/com.apple. Accessibility.plist"];
[dictionary setObject:[NSNumber numberWithInt:2] forKey:@"DefaultRouteForCallPreference"];
[dictionary writeToFile:@"/var/mobile/Library/Preferences/com.apple. Accessibility. plist" atomically:YES];
notify_post("com.apple.accessibility.defaultrouteforcall");
} %end

类似于上述的代码 都需要在Tweak.xm里面编辑 输入,但是这里面没有代码提示的 难道我每次编写这里面的代码的时候 像那种NSMutableDictionary都需要一个一个字母的拼写出来吗?不知道其他人有没有这样的问题....求解

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles