iOS经典面试题总结--内存管理 我根据自己的情况做了一下总结,答案是我总结的,如有答的不好的地方,希望批评指正以及交流,谢谢! 内存管理 1.什么是ARC? ARC是automatic reference counting自动引用计数,在程序编译时自动加入retain/release。在对象被创建 ...
分类:
移动开发 时间:
2016-07-03 00:15:48
阅读次数:
430
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2016-06-30 14:28:35
阅读次数:
146
http://codeforces.com/problemset/problem/372/B 题意:每次给出一个区间,求里面有多少个矩形 思路:预处理,sum[i][j][k][l]代表以k,l为右下角,左上角不超过i,j有多少矩形,然后询问的时候枚举右下角就可以了 ...
分类:
其他好文 时间:
2016-06-28 15:50:50
阅读次数:
243
当我们在使用JSONKit处理数据时,直接将文件拉进项目往往会报这两个错“JSONKit does not support Objective-C Automatic Reference Counting(ARC)”,“ARC forbids Objective-C objects in struc ...
分类:
Web程序 时间:
2016-06-27 17:20:51
阅读次数:
152
1. 3x3 pattern board. Do not mess it up. 2. pattern counting start from 1, not 0 ...
分类:
移动开发 时间:
2016-06-27 06:52:10
阅读次数:
191
ARC是什么 ARC是iOS 5推出的新功能,全称叫 ARC(Automatic Reference Counting)。简单地说,就是代码中自动加入了retain/release,原先需要手动添加的用来处理内存管理的引用计数的代码可以自动地由编译器完成了。 该机能在 iOS 5/ Mac OS X ...
分类:
其他好文 时间:
2016-06-27 00:01:22
阅读次数:
377
报错信息:Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535 向mysql的表插件一个字段 类型为text时,或修改一个字段类型为text时,报出上面的错误。其实 ...
分类:
数据库 时间:
2016-06-23 06:31:45
阅读次数:
191
有使用JSonKit的朋友,如果遇到“JSonKit does not support Objective-C Automatic Reference Counting(ARC)”这种情况,可参照如下方法: 点击项目根目录->targets->Build Phases->JSONKit.m->添加“ ...
分类:
移动开发 时间:
2016-06-21 12:35:04
阅读次数:
221
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2016-06-20 22:10:52
阅读次数:
205
原帖地址 http://stackoverflow.com/questions/36147625/xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting activeoldestvotes up v ...
分类:
其他好文 时间:
2016-06-20 20:45:50
阅读次数:
393