码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
Python Special Syntax 6:模块的__name__
#-*-coding:utf-8class Person: __privateName=None; count=0;#既可以被实例对象引用,也可以被当做静态对象引用,NND,好混乱。 def __init__(self,name): self.count+=1 ...
分类:编程语言   时间:2014-07-06 23:36:44    阅读次数:354
Python Special Syntax 7:继承
继续在上一节的类的基础上测试继承:#-*-coding:utf-8import Syntax2class Student(Syntax2.Person): def __init__(self,name,age): Syntax2.Person.__init__(self,nam...
分类:编程语言   时间:2014-07-06 23:19:57    阅读次数:310
iOS-多线程 ,整理集锦,多种线程的创建
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] init...
分类:移动开发   时间:2014-07-06 23:04:31    阅读次数:270
新浪微博--状态发布及图片的上传
#pragma mark 发微博界面:sendStatus-(void)sendStatus{ if ([self.textView.text isEqualToString:@""]) { UIAlertView *alter = [[UIAlertView alloc...
分类:其他好文   时间:2014-07-06 22:34:00    阅读次数:293
浅谈递归
定义英文定义:Recursion is the process of repeating items in a self-similar way.具体到计算机中去:递归:又称为递回,在数学和计算机科学中,是指在函数的定义中使用函数自身的方法.[以上定义来源为wiki].英文的Recursion表达的...
分类:其他好文   时间:2014-07-05 19:17:57    阅读次数:200
UItextField键盘弹出
//首先注册通知,键盘出现和消失的通知[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(keyboardAppear:) name:UIKeyboardWillShowNotification objec...
分类:其他好文   时间:2014-07-05 18:44:19    阅读次数:170
遍历UIView的子类
for (id view in self.view.subviews) { if ([view isKindOfClass:[UITextField class]]) { UITextField* textField = (UITextField*)view; [t...
分类:其他好文   时间:2014-07-05 17:30:52    阅读次数:161
写一个自定义进度颜色和圆形转动的ProgressBar(详细介绍)
先上图: 我们得自定义ProgressBar的样式 //继承了android横向的ProgressBar的样式 false @drawable/self_define_progress //定义的是背景色 <gradient android:angle="270" android:centerColor="#efe...
分类:其他好文   时间:2014-07-05 11:11:07    阅读次数:346
ios网络学习------11 原生API文件上传之断点续传思路
#import "MainViewController.h" @interface MainViewController () @end @implementation MainViewController - (void)viewDidLoad { [super viewDidLoad]; //下载文件 [self download]; } -(void)dow...
分类:移动开发   时间:2014-07-04 07:36:55    阅读次数:347
C++ Primer Study Note 系列[1]-chapter1快速入门
Iwanttostudyitallthetime,andnowIamreadytostudythisbookinthenextmouth.Time:2014/07/02先看一个程序体验一下:#include<iostream> intmain() { /*Thisisatestexample*/ std::cout<<"Entertwonumbers:"<<std::endl; intv1,v2; std::cin>>v1>>v..
分类:编程语言   时间:2014-07-03 15:24:04    阅读次数:221
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!