代码:- (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
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. //监听手机方向改变事件 [[NSNotificationCenter de...
分类:
移动开发 时间:
2014-12-01 15:36:46
阅读次数:
153
代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIImage *imagePicture=[UIImage imageNamed...
分类:
其他好文 时间:
2014-12-01 15:31:16
阅读次数:
190
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. self.title=@"伸缩式动画";}//点击任何处,弹出动画-(vo...
分类:
其他好文 时间:
2014-12-01 11:22:59
阅读次数:
148