摘要: /* 写一个block传值 ,让两个数进行相除和相乘,在运行时动态决定采用哪种计算方式*/#import int main(int argc, const char * argv[]) { @autoreleasepool { typedef int(^MathBlock)(int,int); Ma... 阅读全文
posted @ 2015-09-11 14:44 阿凡提王 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 委托方要遵守代理,就要继承代理,并且要实现代理/*1. 老板不定期的组织活动,每次都让小明统计参加活动的人数,小明每次将参加活动的人数上报给老板,老板很高兴。*///main/*1. 老板不定期的组织活动,每次都让小明统计参加活动的人数,小明每次将参加活动的人数上报给老板,老板很高兴。*/#impo... 阅读全文
posted @ 2015-09-11 14:38 阿凡提王 阅读(155) 评论(0) 推荐(0) 编辑
摘要: //main.m//// main.m// 回调//// Created by hehe on 15/9/10.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import #import "Employee.h"#import "C... 阅读全文
posted @ 2015-09-10 19:42 阿凡提王 阅读(173) 评论(0) 推荐(0) 编辑
摘要: http://www.tuicool.com/articles/QRbq22n 阅读全文
posted @ 2015-09-10 19:37 阿凡提王 阅读(93) 评论(0) 推荐(0) 编辑
摘要: /*1.将通讯录类(姓名、电话),添加归档和解归档方法,即,添加储存信息到磁盘的方法。*/#import #import "ConTact.h"#define PATH @"/Users/qianfeng/Desktop/hehe/2.plist"int main(int argc, const c... 阅读全文
posted @ 2015-09-10 19:14 阿凡提王 阅读(240) 评论(0) 推荐(0) 编辑
摘要: /*2.创建一个数组,数组中保存一批量的学生信息,把该数组信息储存到磁盘上,并能解归档出来*/#import #define path @"/Users/qianfeng/Desktop/hehe/5.plist"int main(int argc, const char * argv[]) { @... 阅读全文
posted @ 2015-09-10 19:13 阿凡提王 阅读(325) 评论(0) 推荐(0) 编辑
摘要: /*4.创建一个目录info,并在目录中创建一个文件test.txt,把该文件的信息读取出来,并显示出来*/#import #define PATH @"/Users/qianfeng/Desktop/hehe/info"#define PATH1 @"/Users/qianfeng/Desktop... 阅读全文
posted @ 2015-09-10 19:11 阿凡提王 阅读(993) 评论(0) 推荐(0) 编辑
摘要: /*XPath 术语节点(Node)在 XPath 中,有七种类型的节点:元素、属性、文本、命名空间、处理指令、注释以及文档(根)节点。XML 文档是被作为节点树来对待的。树的根被称为文档节点或者根节点。请看下面这个 XML 文档: ios开发指南r 千锋3G 2012 88.88 ios开发... 阅读全文
posted @ 2015-09-10 19:03 阿凡提王 阅读(359) 评论(0) 推荐(0) 编辑
摘要: //下边的例子可以把数组元素逆序输出#import int main(int argc, const char * argv[]) { @autoreleasepool { NSArray *array = @[@"1",@"a",@"c",@"e"]; NSEnumerator *unum; un... 阅读全文
posted @ 2015-09-09 20:45 阿凡提王 阅读(444) 评论(0) 推荐(0) 编辑
摘要: //// main.m// homewoek//// Created by hehe on 15/9/9.// Copyright (c) 2015年 wang.hehe. All rights reserved.//#import #import "GDataXMLNode.h"#import "... 阅读全文
posted @ 2015-09-09 20:26 阿凡提王 阅读(143) 评论(0) 推荐(0) 编辑