码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
iosGCD基础用法
困死了,更完就睡。运行一下有福利,懂的。我这里就不上传效果图了,大家自己运行哈。。。晚安 #import "ViewController.h" @interface ViewController () {          UIImageView *_view; } @end @implementation ViewController ...
分类:移动开发   时间:2015-04-14 08:36:52    阅读次数:157
oc - NSFileHandle归纳,让对象遵守NSCoding协议,将对象存入数组,再通过解码输出
Person.m #import "Person.h" @implementation Person // 编码 - (id)initWithCoder:(NSCoder *)aDecoder{     self = [super init];     if (self) {         self.name = [[aDecoder deco...
分类:编程语言   时间:2015-04-13 16:46:29    阅读次数:281
iosGCD线程中的通信
今天让我们来看一看ios线程中是怎么样通信的。 #import "ViewController.h" @interface ViewController () {     UIImageView *_image; } @end @implementation ViewController - (void)viewDidLoad {     [super...
分类:移动开发   时间:2015-04-13 09:40:43    阅读次数:133
ios线程练习更新进度条
类似于,我们加载网页时候的进度条,我们来看看它们是怎么工作的。 #import "ViewController.h" @interface ViewController () {     UIProgressView *_view; } @end @implementation ViewController - (void)viewDidLoad { ...
分类:移动开发   时间:2015-04-13 09:37:32    阅读次数:155
oc 文件操作,查看目录下所有文件包括子文件夹内包含的所有文件,循环遍历递归
oc 文件操作,查看目录下所有文件包括子文件夹内包含的所有文件,循环遍历递归 FileManager.m #import "FileManager.h" @implementation FileManager + (void)showFiles:(NSString *)path;{     // 1.判断文件还是目录     NSFi...
分类:其他好文   时间:2015-04-13 09:29:49    阅读次数:126
iosGCD多线程之创建多线程
喔尽量分成一小节一小节的写。这样也难让大家看的清楚些。我这里有三种创建线程的方法。代码如下 #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad {     [super ...
分类:移动开发   时间:2015-04-12 09:17:51    阅读次数:166
ios开发类的扩展
类扩展常见方法:定义子类、遵循协议、使用分类、源文件拓展。源文件拓展:语法:在声明@implementation前添加@interface 类名()....@end分类Category向现有类中添加方法时添加子类不方便分类是对现有类的扩展,分类只扩展方法,不扩展属性协议Protoccol可以用来声明...
分类:移动开发   时间:2015-04-11 22:25:02    阅读次数:141
toolbar
#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UITextField *textfield;@end@implementation ViewController...
分类:其他好文   时间:2015-04-11 13:09:44    阅读次数:149
浅谈设计模式:迭代器模式(Iterator Pattern)
官方解释:to access the elements of an aggregate object sequentially without exposing its underlying implementation. 顺序地访问集合对象的元素并且不暴露它的内部实现 假设给定一个集合对象,定义一个与之相关联的Iterator(迭代器),该迭代器能够访问集合对象的内部元素,通过迭代的方法能够按照顺序依次访...
分类:其他好文   时间:2015-04-10 22:26:50    阅读次数:201
OC的类和对象的初步认识
OC是面向对象的编程语言,如何创建和使用对象自然是重中之重,对象是怎么产生的呢?创建对象之前必须要有类,他就像要想盖大楼,必须要有图纸,这个图纸就类似于OC中的类常用的关键字以及其他英文:1 @interface / @end / @implementation / @public / NSLog(...
分类:其他好文   时间:2015-04-10 15:16:14    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!