1.UISwitch类提供一个开/关的用户控制.- (void)viewDidLoad { [super viewDidLoad]; self.mySwitch = [[UISwitch alloc]initWithFrame:CGRectMake(100, 100, 0, 0)...
分类:
其他好文 时间:
2014-10-09 17:33:57
阅读次数:
202
this:能够使用this表示类中的属性------this.name=name能够使用this强调调用的是本类的方法能够使用this调用本类的构造方法------this();调用本类中无參构造方法能够使用this表示当前对象(调用方法的对象)----最重要的用途static:声明属性------...
分类:
编程语言 时间:
2014-10-09 02:19:57
阅读次数:
288
1.static关键字 特点:1)随着类的加载而加载 2)优先于对象存在 3)被所有对象所共享 4)可以直接被类名调用(类名.静态成员) 注意:静态方法只能访问静态成员。 非静态方法可以访问静态成员和非静态成员。 静态方法中,不可以出现this,super关键字。 静态代码块: 1)随着类的加载而执...
分类:
编程语言 时间:
2014-10-09 01:07:47
阅读次数:
141
#import "ViewController.h"#import "Fish.h"#import "Cat.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super v....
分类:
其他好文 时间:
2014-10-09 01:02:17
阅读次数:
261
查看用户权限:SELECT host,user,password,Grant_priv,Super_priv FROM mysql.user;权限取决于最上一条记录的值如果需要收回权限:REVOKE ALL PRIVILEGES ON *.* FROM 'root'@'ip1';上面这条SQL将置G...
分类:
数据库 时间:
2014-10-09 00:53:47
阅读次数:
329
====================问题描述==================== 我想在Activity里面用DrawerLayout+Fragment做抽屉菜单,然后在右侧第一个Fragment里面包含ActionBar结果项目运行后,Activity的OnCreate运行到super.o...
分类:
其他好文 时间:
2014-10-08 17:59:55
阅读次数:
166
代码:#import "MainViewController.h"@interface MainViewController ()@end@implementation MainViewController- (void)viewDidLoad{ [super viewDidLoad]; ...
分类:
其他好文 时间:
2014-10-08 11:29:15
阅读次数:
179
bool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !CCLayer::init() ) { return false; } ...
分类:
其他好文 时间:
2014-10-07 20:11:13
阅读次数:
196
?在敏捷开发中, 測试人员所面临的最大的挑战, 便是怎样与 Super Product Owner, Product Owner, 开发者可高效的协同合作??本文首先便是在探讨測试人员该建立何种的专业,经由自身的专业,建立起与 Super Product Owner, Product Owner, ...
分类:
其他好文 时间:
2014-10-07 17:09:43
阅读次数:
153
在iOS的学习中,对于手势的处理是极为重要的,如对于图片,我们经常需要进行旋转,缩放以及移动等。这里做一下总结,详见代码。 1 - (void)viewDidLoad 2 { 3 [super viewDidLoad]; 4 UIImage *image = [UIImage i...
分类:
移动开发 时间:
2014-10-06 19:40:40
阅读次数:
180