代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. NSString *sex=[self sexStrFromIdentityCar...
分类:
其他好文 时间:
2014-12-02 13:23:04
阅读次数:
126
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //UILabel UILabel *label=[[UILabel...
分类:
其他好文 时间:
2014-12-02 13:14:35
阅读次数:
119
第三章面向对象(一)1.(了解)面向对象和面向过程2.面向对象的编程关注于类的设计1)一个项目或者工程,不管多么庞大,一定是由一个一个的类构成2)类是抽象的,好比是制造汽车的图纸,车是由图纸制造的,其实就是类的实例化3完成一个项目(功能)的思路1)所需要完成的功能对应的..
分类:
编程语言 时间:
2014-12-02 12:05:56
阅读次数:
199
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIImageView *img=[[UIImageView alloc]...
分类:
其他好文 时间:
2014-12-02 10:23:07
阅读次数:
195
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIImageView *imageView=[[UIImageV...
分类:
其他好文 时间:
2014-12-02 10:20:46
阅读次数:
145
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //显示图片的UIImageView UIImageView *im...
分类:
其他好文 时间:
2014-12-02 10:17:38
阅读次数:
185
1 . 基本方法使用
1> retain : 计数器 + 1 , 会返回对象本身
2> release : 计数器 - 1 , 没有返回值
3> retainCount : 获取当前的计数器
4> dealloc
* 当一个对象要背回收的时候, 就会调用
* 一定要调用[super dealloc] , 这句调用要放在最后面
2.概念
1>僵尸对象 : 所占...
分类:
其他好文 时间:
2014-12-02 09:03:23
阅读次数:
151
推荐播客:http://developer.51cto.com/art/200906/130414.htm重要实际上这里涉及方法调用的优先问题 ,优先级由高到低依次为:this.show(O)、super.show(O)、this.show((super)O)、super.show((super)O...
分类:
编程语言 时间:
2014-12-02 01:35:51
阅读次数:
200
#-*- encoding=utf-8 -*-class Singleton(object): def __new__(cls, *args, **kw): if not hasattr(cls, '_instance'): orig = super(Sin...
分类:
编程语言 时间:
2014-12-01 18:59:26
阅读次数:
145
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIImageView *imageView=[[UIImageView allo...
分类:
其他好文 时间:
2014-12-01 18:51:36
阅读次数:
191