自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

转载 在沙盒中创建文件方法1

1 - (void)creatPlistFile{ 2 NSArray *array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES); 3 NSString *path = [array objectAtInd...

2015-08-10 22:23:00 90

转载 UIWindow

UIWindow继承自UIView// 初始化一个窗口,该窗口不带状态栏self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].applicationFrame];//初始化一个窗口,该窗口带状态栏self.window = [[UIWindow alloc]initWithFrame:...

2015-08-09 21:31:00 76

转载 object-c之计时器

主要代码: 1 先设置一个定时器 2 TimeInterval:设置时间间隔 3 target:表示发送的对象 4 selector:选择一个实例方法 5 userInfo:此参数可以为nil,当定时器失效时,由你指定的对象保留和释放该定时器 6 7 [NSTimer scheduledTimerWithTimeInterval:2.0f target:...

2015-07-20 21:32:00 182

转载 object-c之kvc kvo(人中有属性数组、Book对象,数组中装载Book对象)

KVC(KeyValueCoding) “键-值-编码”是一种可以直接通过字符串的名字(key)来访问类实例变量的机制。KVC可以用来访问和设置实例变量的值。设置方式:[self setValue:aName forKey:@"name"]     [self setValue:aName forKeyPath:@"person.name"]访问方式: aString = [se...

2015-07-20 20:08:00 92

转载 object-c之通知

  如果学生没有来上课,老师给家长发送通知 1 #import "Parents.h" 2 // #import "Teacher.h" 3 @implementation Parents 4 5 - (instancetype)init 6 { 7 self = [super init]; 8 if (self) { 9 ...

2015-07-20 19:29:00 140

转载 大文件复制时进行实时保存

1 int main(int argc, const char * argv[]) { 2 @autoreleasepool { 3 4 5 //复制文件 6 7 8 //找到原来的文件路径 9 NSString *sour...

2015-07-15 21:46:00 103

转载 通讯录

1》stuID一样时添加失败2》根据stuID修改联系人姓名、手机号3》根据姓名删除联系人 1 int main(int argc, const char * argv[]) { 2 @autoreleasepool { 3 4 ManagerPhone *book = [[ManagerPhone alloc]ini...

2015-07-15 15:29:00 63

转载 object-c中对文件操作

1 NSString *filePath = @"/Users/scjy/hello/iphone.txt"; 2 3 NSFileHandle *handle=[NSFileHandle fileHandleForUpdatingAtPath:filePath];//准备更新 4 5 [h...

2015-07-14 12:25:00 191

转载 Foundation 框架之——NSDate

1 //创建NSDate实例,返回GMT时间 2 NSDate *date1=[NSDate date]; 3 NSLog(@"%@",date1); 4 5 //返回date1保存的时间与date2的时间间隔 6 //NSTimeInterval是一个双精度值,表示以秒为单位...

2015-07-14 10:04:00 61

转载 Foundation 框架之——NSDictionary、NSMutableDictionary

1 /**************** NSDictionary *****************/ 2 3 //创建一个新的字典 4 NSDictionary *dictionary1=[NSDictionary dictionary]; 5 NSDictionary *dictionary2...

2015-07-14 10:02:00 87

转载 Foundation 框架之——NSString、NSMutableString

1 //字符串的创建 2 NSString *s1 = @"Rose"; 3 4 // 作用相当于s1,基本不用 5 // 警告:Using 'initWithString:' with a literal is redundant 6 // 用“initWithString:“是多余的 7 ...

2015-07-10 19:40:00 92

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除