Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x18868970 {name = _UIWindowSystemGestureStateChangedNotification; object = <UIWindow: 0x17682460; frame = (0 0; 1024 768); autoresize = H; tintColor = UIDeviceRGBColorSpace 0 0.478431 1 1; gestureRecognizers = <NSArray: 0x17682ec0>; layer = <UIWindowLayer: 0x176817a0>>; userInfo = {
“_UIWindowSystemGestureCancellingTouchesUserInfoKey” = 0;
}})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x177daca0 {name = UIViewAnimationDidCommitNotification; object = UIViewAnimationState; userInfo = {
delegate = “<UIViewAnimationBlockDelegate: 0x177dc070>”;
name = “”;
}})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x177d8190 {name = UIViewAnimationDidCommitNotification; object = UIViewAnimationState; userInfo = {
delegate = “<UIViewAnimationBlockDelegate: 0x177c21a0>”;
name = “”;
}})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.cache.ast)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x188619c0 {name = com.apple.accessibility.cache.ast})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.cache.ax)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x1758a830 {name = com.apple.accessibility.cache.ax})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: _CFXNotificationPost(__CFNotification 0x1805c7d0 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: notify_post(com.apple.accessibility.asssistive.touch.status)
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: _CFXNotificationPost(__CFNotification 0x1805c7d0 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.assistive.touch.hardware.status)
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: _CFXNotificationPost(__CFNotification 0x1805c7d0 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x1885d670 {name = com.apple.accessibility.assistive.touch.hardware.status})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: _CFXNotificationPost(__CFNotification 0x1b21efa0 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.cache.ax)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x176d1450 {name = com.apple.accessibility.cache.ax})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.cache.ax)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x188582d0 {name = com.apple.accessibility.cache.ax})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x176e0520 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19 iPad SpringBoard[687]: catcher: _CFXNotificationPost(__CFNotification 0x1ab451f0 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.asssistive.touch.status)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x176e0520 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x176e0520 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x176be590 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(__CFNotification 0x18857810 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x188619c0 {name = _UIWindowSystemGestureStateChangedNotification; object = <UIWindow: 0x17682460; frame = (0 0; 1024 768); autoresize = H; tintColor = UIDeviceRGBColorSpace 0 0.478431 1 1; gestureRecognizers = <NSArray: 0x17682ec0>; layer = <UIWindowLayer: 0x176817a0>>; userInfo = {
“_UIWindowSystemGestureCancellingTouchesUserInfoKey” = 0;
}})
Jun 1 12:08:19: catcher: _CFXNotificationPost(__CFNotification 0x1759c460 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19: catcher: notify_post(com.apple.accessibility.asssistive.touch.status)
Jun 1 12:08:19: catcher: _CFXNotificationPost(__CFNotification 0x176aaf80 {name = com.apple.accessibility.asssistive.touch.status})
Jun 1 12:08:19: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19: catcher: _CFXNotificationPost(__CFNotification 0x17597a00 {name = com.apple.accessibility.status})
Jun 1 12:08:19: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19: catcher: _CFXNotificationPost(__CFNotification 0x176bf200 {name = com.apple.accessibility.status})
Jun 1 12:08:19: catcher: notify_post(com.apple.accessibility.status)
Jun 1 12:08:19: catcher: _CFXNotificationPost(__CFNotification 0x1769ba90 {name = com.apple.accessibility.status})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x177b63d0 {name = UIViewAnimationDidStopNotification; object = <UIViewAnimationState: 0x1774dbd0>; userInfo = {
delegate = “<UIViewAnimationBlockDelegate: 0x177dc070>”;
name = “”;
}})
Jun 1 12:08:19 iPad catcher: _CFXNotificationPost(NSConcreteNotification 0x177dc070 {name = UIViewAnimationDidStopNotification; object = <UIViewAnimationState: 0x17736180>; userInfo = {
delegate = “<UIViewAnimationBlockDelegate: 0x177c21a0>”;
name = “”;
}})
我找到了对应Plist文件,然后也修改了一些值,书中使用通知,然后就解决了,我发了通知没用,根据截取到的通知,我xm文件代码如下:
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@“第二次” message:nil delegate:self cancelButtonTitle:@“OK” otherButtonTitles:nil];
[alert show];
NSMutableDictionary *dictionary = [NSMutableDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.apple.Accessibility.plist"];
[dictionary setObject:[NSNumber numberWithInt:1] forKey:@"AssistiveTouchEnabled"];
[dictionary setObject:[NSNumber numberWithInt:1] forKey:@"AccessibilityEnabled"];
[dictionary setObject:[NSNumber numberWithInt:1] forKey:@"AssistiveTouchUIEnabled"];
[dictionary writeToFile:@"/var/mobile/Library/Preferences/com.apple.Accessibility.plist" atomically:YES];
notify_post("com.apple.accessibility.asssistive.touch.status");
notify_post("com.apple.accessibility.status");
notify_post("com.apple.accessibility.cache.ast");
notify_post("com.apple.accessibility.cache.ax");
然后make page install 后,发现 设置里面选项是改了(说明Plist改对了),但是,小圆点没有出来,然后我就没有思路了, 谁能告诉我,还有什么思路我继续往下搞,谢谢了。