2014年4月30日
摘要: 屏幕背景颜色:影响不像 wp的屏幕那么明显,但还是有一定的作用,大概在5%左右,wp的屏幕大概在20%左右,测试方法 :只一个界面,一个是黑色背景,一个是白色背景,使用instrument 的 energy usage 进行分析。层次影响:加多四个层次并且加一个mask差别也不大。 阅读全文
posted @ 2014-04-30 12:57 tanglaoya321 阅读(174) 评论(0) 推荐(0) 编辑
  2014年2月27日
摘要: On the command line,gcc -E foo.mwill show you the preprocessed output (just as it does for normal C/C++ files). Of course, this will also expand any#i... 阅读全文
posted @ 2014-02-27 23:45 tanglaoya321 阅读(264) 评论(0) 推荐(0) 编辑
  2014年2月13日
摘要: 可以通过 (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents; 方法来绑定某个控件事件的回调,这里的action可以是任意个参数的方法, 但至多有三个有效信息,多于... 阅读全文
posted @ 2014-02-13 16:40 tanglaoya321 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 代码修改后要先build下,不要直接运行那工具。最好先退出后再进去。对nsstring,如果是用[[NSString alloc] initWithString:@"This is a String!"]这种方式生成的,那么,这是一个常量字符串,是不会放到堆里面的,实际并没有分配内存,所以也不用释放。 testview = [[UIView alloc] init]; testview = [[UIViewalloc] init];对于这样一种问题。如果引用testview 的对象在instruments 运行的时候还存在,那么 instruments不能对这样的情况做出判 阅读全文
posted @ 2014-02-13 15:03 tanglaoya321 阅读(459) 评论(0) 推荐(0) 编辑
  2013年9月25日
摘要: 最近发现在watch窗口不能智能提示了, 猜测是vs的智能提示挂了,由于装了resharper,所以在编辑还是有智能提示.禁用reshaper后,发现,编辑窗口也不能智能提示了.在工具 textedior 里发现tentellisense设置一切正常,最后找资料发现在textedior -c# - general 中的auto list members 也是要勾选的. 阅读全文
posted @ 2013-09-25 15:35 tanglaoya321 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1、用工具(dex2jar)将dex 转为 jar 文件.2、从jar文件中解压出class 文件 。3、用反编译工具,推荐用jad (最强大,反编译的最好) 阅读全文
posted @ 2013-09-25 01:08 tanglaoya321 阅读(137) 评论(0) 推荐(0) 编辑
  2013年9月17日
摘要: 转http://fiddler2.com/documentation/Configure-Fiddler/Tasks/ConfigureForAndroidConfigure FiddlerClickTools > Fiddler Options > Connections.Ensure that the checkbox byAllow remote computers to connectis checked.If you check the box, restart Fiddler.Hover over theOnline indicatorat the far right 阅读全文
posted @ 2013-09-17 22:14 tanglaoya321 阅读(327) 评论(0) 推荐(0) 编辑
  2013年7月18日
摘要: 最近在eclipse搞点东西,但在eclipse下输入法会变为微软拼音,找卸载它的地方也没找到,最后发现只要HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts 下面把微软拼音干掉就可以了。记得重启下 阅读全文
posted @ 2013-07-18 13:36 tanglaoya321 阅读(170) 评论(0) 推荐(0) 编辑
  2013年7月1日
摘要: 可以尝试的方法有 1、用代理,(如果在浏览器可以打开,如https://dl-ssl.google.com/android/repository/repository-8.xml,并且浏览器也设置了代理)。 在android sdk manager ->tools ->options ->proxy... 阅读全文
posted @ 2013-07-01 14:30 tanglaoya321 阅读(446) 评论(0) 推荐(0) 编辑
  2013年6月27日
摘要: js截屏 可以用canvas实现,前提是要支持canvas ,在不支持canvas 的浏览器可以试试explorercanvas 基本的原理是用枚举要画的dom 用canvas重新画一遍,然后在将canvas保存成图片。 比较好的实现有HTML2Canvas. 阅读全文
posted @ 2013-06-27 10:34 tanglaoya321 阅读(281) 评论(0) 推荐(0) 编辑