码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
sharepoint ECMA 添加User到Site组
1 self.GetGroup = function (subSiteurl) { 2 var subClientContent = new SP.ClientContext(subSiteurl); //获取当前站点 3 var ...
分类:其他好文   时间:2014-06-09 00:11:33    阅读次数:250
IOS AsyncSocket
导入AsyncSocket.h AsyncSocket.m AsyncUdpSocket.h AsyncUdpSocket.m 以及 CFNetWork.framework asyncSocket = [[AsyncSocketalloc] initWithDelegate:self]; N...
分类:移动开发   时间:2014-06-09 00:07:26    阅读次数:337
多线程的实现
NSThread方法一:- (void)viewDidLoad{ [super viewDidLoad]; NSThread * thread = [[NSThread alloc]initWithTarget:self selector:@selector(test:) object:...
分类:编程语言   时间:2014-06-08 21:54:03    阅读次数:291
依旧Block调用引起的内存泄露
@前面的文章讲到,在Block中用到self(self特指UIViewController),需要用__block或者__weak修饰(MRC与ARC的区别),因为Block调用会对其里面的对象引用计数加1,如果你不确定你调用的Block是否会产生循环引用的话,最好用__block或__weak修饰.当然,如果你确定并不会产生循环引用的情况,那你可以放心的self.  self. (~O(∩_∩)...
分类:其他好文   时间:2014-06-08 16:34:27    阅读次数:215
LeetCode: Populating Next Right Pointers in Each Node II [117]
【题目】 Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example, Given the following binary tre...
分类:其他好文   时间:2014-06-08 15:46:22    阅读次数:303
quick-cocos2d-x教程10:实现血条效果。
血条是常见功能,可以通过一个血条背景和一个不断改变得血条宽度,来实现少血。 在MainScence.lua中,先改代码: function MainScene:ctor()     local bg = display.newSprite("bg01.jpg")     bg:setPosition(display.cx, display.cy)     self:addChild(bg...
分类:其他好文   时间:2014-06-08 15:34:24    阅读次数:347
Recover Binary Search Tree
题目 Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forward. Cou...
分类:其他好文   时间:2014-06-08 15:32:45    阅读次数:245
Subsets II
题目 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not c...
分类:其他好文   时间:2014-06-08 05:32:21    阅读次数:196
Merge Sorted Array
题目 Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (size that is greater or equal to m + n) to hold additional el...
分类:其他好文   时间:2014-06-08 05:05:47    阅读次数:268
Subsets
题目 Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-06-08 04:01:05    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!