会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
汪伟
博客园
首页
新随笔
联系
订阅
管理
2014年10月16日
字典,集合练习
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; NSArray *arra...
阅读全文
posted @ 2014-10-16 21:15 汪伟
阅读(139)
评论(0)
推荐(0)
2014年10月15日
不可变数组的一些方法与理解
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; /*_________...
阅读全文
posted @ 2014-10-15 20:16 汪伟
阅读(673)
评论(0)
推荐(0)
2014年10月13日
创建浏览器的基本
摘要: #import "ViewController.h"@interface ViewController () //保包括这个viewdelegat协议 @property (weak, nonatomic) IBOutlet UITextField *search; //这是...
阅读全文
posted @ 2014-10-13 21:00 汪伟
阅读(293)
评论(0)
推荐(0)
2014年10月10日
NSobject的复制以及其他一些类方法和实例方法的理解
摘要: copy和copyWithZone@interface Animal :NSObject //在后面包含NSCOPYING协议 在M文件中复制ANimal类中的对象.- (id)copyWithZone:(NSZone *)zone //copy使用...
阅读全文
posted @ 2014-10-10 21:53 汪伟
阅读(565)
评论(0)
推荐(0)
2014年10月9日
协议练习改成block
摘要: 更改协议成block,运行,设置一个头文件person.h#import @interface Person : NSObject@property (nonatomic, copy) void (^brak)(void); //声明void类返回void的block类型的brak,@propert...
阅读全文
posted @ 2014-10-09 21:25 汪伟
阅读(159)
评论(0)
推荐(0)
2014年10月8日
协议练习
摘要: 声明一个协议头文件#ifndef Dog_Play_h#define Dog_Play_h@protocol Play @required- (void)brak;- (void)tail;- (void)go;@end#endif定一个persons类.#import #import "Play....
阅读全文
posted @ 2014-10-08 19:35 汪伟
阅读(175)
评论(0)
推荐(0)
内存管理.
摘要: #import "ViewController.h"#import "Fish.h"#import "Cat.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super v...
阅读全文
posted @ 2014-10-08 19:25 汪伟
阅读(133)
评论(0)
推荐(0)
2014年10月5日
oc
摘要: #import "ViewController.h"#import "Tiger.h"#import "Lorry.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [su...
阅读全文
posted @ 2014-10-05 21:17 汪伟
阅读(335)
评论(0)
推荐(0)
2014年9月26日
一个文件复制到另一个文件
摘要: int main(){ FILE *fp=fopen("/Users/apple/Desktop/link2.c","r"); FILE *fp1=fopen("/Users/apple/Desktop/link3.c","w"); char ch[]={}; if (fp!...
阅读全文
posted @ 2014-09-26 09:54 汪伟
阅读(288)
评论(0)
推荐(0)
一个文件的内容复制到另一个文件中.
摘要: int main(){ FILE *fp,*fp1; char ch[]={}; if ((fp=fopen("/User/Apple/Desktop/text.1","r"))==NULL) { printf("cannot open file\n"); ...
阅读全文
posted @ 2014-09-26 09:28 汪伟
阅读(252)
评论(0)
推荐(0)
下一页
公告