Cycript 的使用
ssh root@192.168.6.107 -p 22
ps -e | grep QQ
cycript -p QQ
cy# UIApp
#"<UIApplication: 0x14e5ae510>"
cy# [[UIApplication sharedApplication] setStatusBarHidden:YES]
cy# [[UIApplication sharedApplication] setStatusBarHidden:NO]
cy#
# 查看手机 UIApplication 的
# 动态设置 QQ 程序的状态栏显示
// QQ cycript -p QQ
[[UIApplication sharedApplication] setStatusBarHidden:YES] //隐藏状态栏
[[UIApplication sharedApplication] setStatusBarHidden:NO] //显示状态栏
[[[UIAlertView alloc]initWithTitle:@"Tanzhou" message:@"Hello luz" delegate:ni cancelButtonTitle:@"ok" otherButtonTitles:nil, nil] show] //弹框
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:9999] //设置badge数字
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1]
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]
// SpringBroad cycript -p SpringBroad
[[SBScreenShotter sharedInstance] saveScreenshot:YES] 截屏,闪光
[[SBScreenShotter sharedInstance] saveScreenshot:NO] 截屏,不闪光
[[SBScreenFlash mainScreenFlasher] flashColor:[UIColor magentaColor] withCompletion:nil] 屏幕闪紫色光
- 修改QQ setApplicationIconBadgeNumber 的效果图
QQ.png
网友评论