码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
【leetcode】Reorder List (python)
问题的思路是这样: 循环取头部合并,其实也可以换个角度来看,就是将后面的链表结点,一次隔空插入到第一部分的链表中。 class Solution: # @param head, a ListNode # @return nothing def reorderList(self, head): if None == head or None == ...
分类:编程语言   时间:2014-07-16 17:23:30    阅读次数:207
设置背景为白色,避免从A视图跳转到B视图的时候出现卡顿
- (void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor];}
分类:其他好文   时间:2014-07-16 17:06:52    阅读次数:163
关于error:Cannot assign to 'self' outside of a method in the init family
今天在编写model时,突然发现了“Cannot assign to 'self' outside of a method in the init family”问题。后通过搜索解决了此问题,记录之。有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父...
分类:其他好文   时间:2014-07-16 15:44:36    阅读次数:193
代码编写横屏的UIView
- (id)initWithFrame:(CGRect)frame{ if(self= [superinitWithFrame:frame]) { // Important here, rotate THIS UIView [selfsetCenter:CGPointMake(160...
分类:其他好文   时间:2014-07-16 15:26:52    阅读次数:149
Python自省学习
1. 访问对象的属性class MyClass(): a='1' b='2' def __init__(self): pass def write(self): print self.a,self.bmyClass=MyClass()print d...
分类:编程语言   时间:2014-07-16 15:15:04    阅读次数:302
(转)function($){}(window.jQuery) 是什么意思?
function(){}();(function(){})();这两个是self-invoking anonymous 自调匿名函数,用这类的方法,能强制使匿名函数成为表达式,把不合法变成合法。()是对函数赋值,所以function($){}(window.jQuery) 就是指把window.jQ...
分类:Windows程序   时间:2014-07-16 15:10:40    阅读次数:384
python 生成二维码
#coding:utf8try: import qrcodeexcept ImportError: qrcode = Noneclass MakeQr: def onUseQrcode(self, value): qr = qrcode.QRCode(version=1,...
分类:编程语言   时间:2014-07-16 15:07:18    阅读次数:214
location.href的用户总结
*.location.href 用法:   top.location.href=”url”          在顶层页面打开url(跳出框架)   self.location.href=”url”         仅在本页面打开url地址   parent.location.href=”url”      在父窗口打开Url地址   this.location.href=”url”   ...
分类:其他好文   时间:2014-07-16 14:30:03    阅读次数:171
popToViewController的用法(跳转到你想跳转到的那个控制器)
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:?] animated:YES];或for (UIViewController *temp ...
分类:其他好文   时间:2014-07-16 11:56:24    阅读次数:188
Android:创建可穿戴应用 - 语音操作
语音操作是可穿戴用户体验的重要部分,可以让用户以快捷、免提的方式执行动作。Wear提供两种类型的语音操作:系统提供(System-provided)这些语音操作是基于任务的,且内置于Wear平台。语音命令到达时,在你想启动的活动(Activity)中进行动作过滤。比如“记一下”(Take a note)或“提醒一下”(Set an alarm)。...
分类:移动开发   时间:2014-07-16 08:32:19    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!