• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Yesi-悦思
"(program(computers) == *art) ? so : what" 修身岂为名传世,作事惟思利及人
博客园    首页    新随笔    联系   管理    订阅  订阅
2015年6月4日
NSDate
摘要: #pragma mark dateCreate void dateCreate(){ NSDate *date=[NSDate date];//调用当前时间 now //返回以当前时间为基准,然后过了secs秒时间。 date=[NSDate dateWithTimeIntervalSinceNow:10];//TimeInterval 是秒 //会比当前时间快10s //基准... 阅读全文
posted @ 2015-06-04 23:09 悦思 阅读(243) 评论(0) 推荐(0)
NSValue
摘要: 针对结构体 NSNumber->数字 NSNumber是NSValue的一个子类 NSValue可以包装任意值(也可以包装对象,吃太多 ) void value(){ CGPoint point=CGPointMake(10,10); NSValue *value=[NSValue valueWithPoint:point]; NSMutableArray array=[NSMuta... 阅读全文
posted @ 2015-06-04 22:11 悦思 阅读(121) 评论(0) 推荐(0)
NSNull
摘要: 集合中是不能放nil值的,因为nil是结尾,但是为了存放表示什么都没有的值,可以使用NSNull,它也是NSObject的一个子类. void null(){ NSNull *nl=[NSNull null]; //全局单粒,只能有一个,返回的是同一个单粒对象 //{“id”:10,“name”:”mj”,”descs”:”null”} //解析成dictionary所以干脆没有最后的k... 阅读全文
posted @ 2015-06-04 20:19 悦思 阅读(114) 评论(0) 推荐(0)
NSNumber
摘要: NSNumber 可以将基本数据类型包装成对象,这样可以间接数据类型存进NSArray,NSDictionary。 void number(){ NSNumber *number=[NSNumber numberWithInt:10]; NSMutableArray *array=[NSMutableArray array]; [array addObject:number]; //进去... 阅读全文
posted @ 2015-06-04 19:41 悦思 阅读(166) 评论(0) 推荐(0)
NSMutableDictionary
摘要: //NSMutableDictionary #import “Student.h” #pragma mark use of NSMutableDictionary void dictUse(){ Student *stu1=[Student studentWithName:@”stu1”]; Student *stu2=[Student studentWithName:@”stu2”]... 阅读全文
posted @ 2015-06-04 16:15 悦思 阅读(271) 评论(0) 推荐(0)
When you want to succeed as bad as you wanna breathe, then you’ll be successful.
摘要: 上周末登了次山,回来就各种矫情犯懒。今天周四一周又要完蛋,我发现自己真的是对时间流逝无可奈何。然后中午看了把小码哥网站还有MJ博客什么的,各种首期班大爆照,心中羞愧无比。年纪大也不能放弃自己啊,要不人生怎么活?虽然我是第七期或者第八期的,现在也要做好准备啊。foundation快看完了,电脑下周才能... 阅读全文
posted @ 2015-06-04 14:29 悦思 阅读(1168) 评论(0) 推荐(0)
You raise me up
摘要: 阅读全文
posted @ 2015-06-04 12:46 悦思 阅读(166) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3