LibInsformance
LibInsformance copied to clipboard
可能遇到的几个问题及解决
1.CodeSign error: code signing is required for product type 'Dynamic Library' in SDK 'iOS 8.2' code Signing Identity 改成 iOS Developer就好了
2.LibInsformance.plist 需要哪个程序显示就把哪个程序的id写进去,默认是只桌面显示
3.默认0.5秒刷新 更改的话, tickCounter%30 哪里 把30改低即可。我改成了10,飞快啊。。。
关于2) id 不写默认应该是hook所有app的,3)我之所以为30是考虑到如果设置低了刷新太快,cpu一直高位,发热会有影响;改成60也就是1s刷新怕在快速滑动的时候更新不够灵敏,不过问题不大
盖住了状态栏有点儿不爽,至少请求网络的转圈看不到了,稍微修改了下JDStatusBarNotification,给定了lable靠右,长度220,以及 self.topBar.backgroundColor = [UIColor clearColor];
来个pull request或者看下效果图?
又改了把,这回自己觉得不赖
恩,还不错
就是有时候cpu 值会到100%多,不知道啥情况
我没遇到过呢,不好说
不改了,有需要的请回帖。
你给我发的哪个源码我下载不了
http://51devapp.com/LibInsformance_himoo_0321.zip
这里label的圆角背景是哪行代码的作用
self.textLabel.frame = CGRectMake((self.bounds.size.width - 190)/2 , self.textVerticalPositionAdjustment+16, 190, self.bounds.size.height/2);
self.textLabel.layer.cornerRadius = 5;
self.textLabel.layer.masksToBounds = YES;
self.textLabel.layer.borderColor = [UIColor clearColor].CGColor;
self.textLabel.layer.borderWidth = 1.0f;
self.textLabel.layer.rasterizationScale = [UIScreen mainScreen].scale;
self.textLabel.layer.shouldRasterize = YES;
self.textLabel.clipsToBounds = YES;