- 博客(6)
- 收藏
- 关注
原创 iOS开发之UIScrollView
//// RootViewController.m// LessonUIScrollView//// Created by 楠少轻狂 on 14-8-29.// Copyright (c) 2014年 lanouhn. All rights reserved.//#import "RootViewController.h"@interface RootVie
2014-09-20 16:09:42
154
原创 iOS开发之手势(UIGestureRecognizer)
//// RootViewController.m// LessonUIGestureRecognizer//// Created by 楠少轻狂 on 14-8-27.// Copyright (c) 2014年 lanouhn. All rights reserved.//#import "RootViewController.h"#import "UICo
2014-09-20 15:55:58
211
原创 UISegmentedControl,UISlider,UISwitch,代码截屏,UIStepper的简单使用
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
2014-09-20 15:08:24
203
原创 iOS代码截屏
//(1.)设置要截屏的图片大小UIGraphicsBeginImageContext(self.view.frame.size);//(2.)对哪个视图截图固定大小的图片[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];//(3.)获取截图的图片对象UIImage * image = UIGraph
2014-09-20 15:03:15
180
原创 iOS的执行周期
//// XSNAppDelegate.m// LessonComprehensive//// Created by 效帅楠 on 14-8-21.// Copyright (c) 2014年 lanouhn. All rights reserved.//#import "XSNAppDelegate.h"@interface XSNAppDelegate
2014-09-20 15:00:30
165
原创 OC内存管理要点总结
1. alloc开辟内存空间,并且将对象的引用计数由0变为1 retain 将对象的引用计数加1 release 将对象的引用计数(立即)-12.在管理内存的时候,经常出现三个问题: (1)内存泄露 现象:内存堆积,在运行中崩溃(占用内存较小时可能不会crash) 产生原因:对一个对象进行alloc,retain,copy之后,没有对它进行相应的release或者aut
2014-08-14 22:40:36
251
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人