码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
Python的设计模式学习
1.工厂模式#encoding=utf-8__author__ = 'kevinlu1010@qq.com'class ADD(): def getResult(self,*args): return args[0]+args[1]class SUB(): def getR...
分类:编程语言   时间:2014-07-16 22:56:35    阅读次数:213
#Leet Code# Root to leaf
语言:Python描述:使用递归实现 1 def getList(self, node): 2 if node is None: 3 return [] 4 5 if node.left is None and node.right ...
分类:其他好文   时间:2014-07-16 21:37:16    阅读次数:174
文件下载
1、 使用队列NSOperation下载时会将操作放在异步线程里面,不会放在主线程中换一种方法进行下载:- (void)download { self.data = [NSMutableData data]; //发送请求 NSURL *url = [NSURL URLWithString:@"ht...
分类:其他好文   时间:2014-07-12 12:52:59    阅读次数:239
在swift中使用线程休眠
C#和php都有sleep让线程休眠指定时间后再继续执行后面的代码,swift中应该如何呢?首先,找一下objective-c版本是怎么做的[self performSelector:@selector(didTimeOut:) withObject:nil afterDelay:60];// 顺便...
分类:编程语言   时间:2014-07-12 00:35:19    阅读次数:1116
#Leet Code# Unique Tree
语言:Python描述:使用递归实现 1 class Solution: 2 # @return an integer 3 def numTrees(self, n): 4 if n == 0: 5 return 0 6 eli...
分类:其他好文   时间:2014-07-11 23:44:08    阅读次数:216
IOS CAShapeLayer CAGradientLayer UIBezierPath 使用实例
CGRectrect =CGRectMake(100,100,100,100); UIView* bgView = [[UIViewalloc]initWithFrame:rect]; bgView.backgroundColor= [UIColorgrayColor]; [self.viewa.....
分类:移动开发   时间:2014-07-11 22:44:49    阅读次数:250
IOS系列——NStimer
Timer常用的一些东西 1. 初始化   timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(changeTime:) userInfo:nil repeats:YES]; 2.timer 马上执行[tiemr fire];如果在初始化的时候不加这一句代码 ,timer也马上回...
分类:移动开发   时间:2014-07-11 00:43:22    阅读次数:359
IP 地址转换 inet_addr() inet_ntoa() 笔记
inet_addr() inet_ntoa() 及其自实现函数self_inet_ntoa() 和 self_inet_addr()笔记...
分类:Web程序   时间:2014-07-10 22:00:44    阅读次数:638
基础动画和核心动画导览
1 uiview动画     [UIView beginAnimations:@"Curl"context:nil];//动画开始    [UIView setAnimationDuration:0.75];   [UIView setAnimationDelegate:self];   [UIView setAnimationTransition:UIViewAnimationTran...
分类:其他好文   时间:2014-07-10 19:32:01    阅读次数:218
iOS开发项目篇—11item
iOS开发项目篇—11item一、UINavigationItem1.获得方式self.navigationItem // self是指控制器2. 作用可以用来设置当前控制器顶部导航栏的内容设置导航栏中间的内容self.navigationItem.titleself.navigationIte.....
分类:移动开发   时间:2014-07-09 13:14:09    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!