码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
php常量赋值
<?php classmy{ static$shengao="188";//my::$shengao="190"; static$age="18"; staticfunctionshengao(){ echo"我的身高:".self::$shengao."</br>"; } staticfunctionage(){ echo"我的年龄:".self::$age."</br>"; } staticfunctionzonghe()..
分类:Web程序   时间:2014-10-30 10:28:43    阅读次数:264
导航控制器的制作,push,pop,root,index
AppDelegate.m #import "FirstViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.win...
分类:其他好文   时间:2014-10-30 10:26:17    阅读次数:229
2014.10.29--php
在php类中如果$this->wowo;其中wowo是变量,但是在类中没有定义,则系统会自动调用__get魔术函数,self::可以应用在类中,用于取得静态变量或函数;$this->用于取出类中的私有、公有变量函数,也可以去静态变量;查看代码时可以应用debug查看具体的参数内容;今天语录:..
分类:Web程序   时间:2014-10-30 02:09:25    阅读次数:213
UIView的自动尺寸调整属性autoresizesSubviews 属性
自动尺寸调整属性autoresizesSubviews//高度自动伸缩,右边间距自动伸缩self.autoresizesSubviews=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleRightMargin;UIViewAutoresizingNone这个常量如果被设置,视图将不进行自动尺寸调整。UIViewAutoresizingFlexible..
分类:其他好文   时间:2014-10-30 02:06:31    阅读次数:130
python 线程池学习
#!/usr/bin/pythonimportQueue,threading,sysfromthreadingimportThreadimporttime,urllibclassWorker(Thread):worker_count=0def__init__(self,workQueue,resultQueue,timeout=0,**kwds):Thread.__init__(self,**kwds)self.id=Worker.worker_countWorker.worker_count+=1self...
分类:编程语言   时间:2014-10-29 19:43:19    阅读次数:208
ios save image to album
- (void)savePhotoToAlbum{ ZoomScrollView *zoomScrollView = (ZoomScrollView*)[self.scrollViewviewWithTag:BEGIN_TAG_FOR_IMAGE+self.currentImagePage]; .....
分类:移动开发   时间:2014-10-29 16:22:42    阅读次数:223
单例---视图间数据的传递:标签显示输入的内容【多个视图中】
RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor greenColor]; //创建显示文字的label UILabel *label = [[UILabel alloc] initWithFr...
分类:其他好文   时间:2014-10-29 14:57:16    阅读次数:162
通知---视图间数据的传递:标签显示输入的内容【多个视图中】
RootViewController.m - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { ...
分类:其他好文   时间:2014-10-29 14:57:16    阅读次数:123
SQLite创建表并添加数据
- (void)viewDidLoad { [super viewDidLoad]; //创建表 [self creatTable]; //插入数据 [self insertTable]; } // -----------------------创建一个表-------------------- - (void)creatTable { // 1.创建一个...
分类:数据库   时间:2014-10-29 13:00:03    阅读次数:336
Property cannot be found on forward class object?
I have a UIView and I'm trying to set its layer properties.self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];self.color...
分类:其他好文   时间:2014-10-29 12:39:13    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!