摘要: 原文链接:Automatic memory leak detection on iOS 自动检测iOS内存泄漏 一般情况下我们是这样去找到问题并修复它们: 这个方法意味着我们需要手动重复很多次才能定位直至解决问题。 在 runtime 期间探测 retain cycle Objects type e 阅读全文
posted @ 2016-04-20 15:50 Stone``` 阅读(582) 评论(1) 推荐(0) 编辑
摘要: 1、关系 On iOS, every UIView is backed by a Core Animation CALayer. Simply speaking,UIView inherit from NSResponder,handle events from users, contains CA 阅读全文
posted @ 2016-03-14 22:50 Stone``` 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 将自定义的类的数据以数组的形式直接存储到NSUserDefaults中会报错,需要进行转换,且需要将该类实现NSCoding协议。e.g.存储过程NSMutableArray *archiveArr = [NSMutableArray arrayWithCapacity:self.STNArrayL... 阅读全文
posted @ 2015-11-02 22:27 Stone``` 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 1、在Finder中找到你打出去的那个包,YourAppName.xcarchive。2、然后Show Package Contents,在dSYMs 和 Products文件夹内找到这两个文件:YourAppName, YourAppName.app.dSYM3、把这两个文件放到一个文件夹内,在终... 阅读全文
posted @ 2015-04-29 14:57 Stone``` 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 一篇关于iOS 编程中 @property 方法中属性的介绍,写的十分简洁明了,原文链接请戳。===读后分割线====在iOS 5之后,有了ARC的出现,不需要手动进行内存管理,@property 中的属性也有了一些变化。现在常使用的如下:属性功能介绍getter=给getter方法一个自定义名称s... 阅读全文
posted @ 2014-05-18 20:06 Stone``` 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 在国外的一篇博客文章上有下面一些题目,刚开始做的时候错了4个,虽然涉及的知识点不算非常多,但的确有很多细节方面平时需要多加注意的,现在记录下每个题目背后所需要的知识。Quiz mainly focuses on knowledge of scoping, function expressions (and how they differ from function declarations), references, process of variable and function declaration, order of evaluation, and a couple more thin 阅读全文
posted @ 2014-03-12 15:22 Stone``` 阅读(1104) 评论(3) 推荐(1) 编辑
摘要: 看到一篇博文中写到了关于JS执行引擎的东西,特来做一下测试并记录一下JS 在代码执行过程中碰到的问题。1、两个函数名相同的定义式函数 function myfunc(){ alert("1"); } myfunc(); //弹出 2 function myfunc(){ alert("2"); } myfunc(); //弹出 2因为JS在执行代码的过程中【并非一行一行地分析和执行代码,而是一段一段分析执行的。而且,在同一段程序的分析执行中,定义式的函数语句会被提取出... 阅读全文
posted @ 2013-12-26 10:04 Stone``` 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 错误示例: for (var i = 0; i < 6; i++) { // var unique = seqer.gensym(); var unique = i + '123'; document.writeln(unique[i] + ","); };输出结果为:0, 1, 2, 3, undefined, undefined,正确示例: for (var i = 0; i < 6; i++) { // var unique = seqer.gensym(); var unique = i + '12... 阅读全文
posted @ 2013-12-18 11:05 Stone``` 阅读(118) 评论(0) 推荐(0) 编辑