• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Yesi-悦思
"(program(computers) == *art) ? so : what" 修身岂为名传世,作事惟思利及人
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 10 11 12 13 14 15 16 17 下一页
2015年5月15日
指向指针的指针
摘要: review ordinary pointervoid changeC(char *d){*d=9}char c=10;char *p=&c;changeC(&c);NSLog(@"%i",c);void changeStr(NSString *str2 ){str2=@"123";}main.mN... 阅读全文
posted @ 2015-05-15 15:00 悦思 阅读(131) 评论(0) 推荐(0)
2015年5月14日
NSString的创建
摘要: create#progma mark create NSStringvoid stringCreate(){//char *s="A String";->cNSString *str1=@"A String!"; //const, no memory managementNSString *st... 阅读全文
posted @ 2015-05-14 17:16 悦思 阅读(214) 评论(0) 推荐(0)
Foundation-常用结构体
摘要: 复习void test(){struct Date{int year;int month;int day;};struct Date d={2015,5,14};d.day=6;}void test1(){typedef struct Date{int year;int month;int day;... 阅读全文
posted @ 2015-05-14 15:50 悦思 阅读(137) 评论(0) 推荐(0)
2015年5月13日
Foundation summary
摘要: http://www.cnblogs.com/kenshincui/p/3885689.html 阅读全文
posted @ 2015-05-13 17:00 悦思 阅读(118) 评论(0) 推荐(0)
成员变量补充
摘要: 是关于block与函数和指向函数的指针的区别:main.mint sum(inta,intb){return a+b;}@autoreleasepool{int (^Sum)(int,int)=^(int a,int b){return a+b;};//blockint c=Sum(10,10);N... 阅读全文
posted @ 2015-05-13 13:42 悦思 阅读(123) 评论(0) 推荐(0)
2015年5月12日
Block^
摘要: Block 封装了一段代码,可以在任何时候执行Block可以作为函数或者函数的返回值,而其本身又可以带输入参数货返回值。它和传统的函数指针很类似,但是有区别:Block是inline(内联函数)的,并且默认情况下他对局部变量是只读的。苹果官网建议尽量多用Block。在多线程、异步任务、集合遍历、集合... 阅读全文
posted @ 2015-05-12 17:00 悦思 阅读(155) 评论(0) 推荐(0)
2015年5月11日
Protocol
摘要: 概念简单来说就是一系列方法的列表,其中生命的方法可以不饿任何类实现,这种模式一般称为代理(delegation)模式。不就是C#的接口噻。OC叫协议,代理和监听器思想是一样的。在iOS和OS X开发中,Apple采用了大量的代理模式来实现MVC中View(UI控件)和Controller(控制器)的... 阅读全文
posted @ 2015-05-11 21:36 悦思 阅读(268) 评论(0) 推荐(0)
Category-分类
摘要: 概念1OC中提供了一种与众不同的方式-Category,可以动态地为经已存在的类添加新的方法。变态啊,不改变.m 和.h2可以保证类的原始设计规模大小,功能增加时再逐步扩展。3Category使用简单的方式,实现了类的相关方法的模块化,把不同的类方法分配到不同的文件中。只是方法,不能拓展成员变量--... 阅读全文
posted @ 2015-05-11 21:24 悦思 阅读(138) 评论(0) 推荐(0)
李明杰要在广州开课啦
摘要: 好激动 好想去,贷款有木有。有的话直接去了。 各种费用很低啊。比什么千锋少一半啊。 阅读全文
posted @ 2015-05-11 16:56 悦思 阅读(374) 评论(1) 推荐(0)
内存管理3- @property 参数详解
摘要: @property-----------------Create two classes:Book & Student-------------------book.m#import "Book.h"#import "Card.h"@implementation Book-(void)dealloc... 阅读全文
posted @ 2015-05-11 14:39 悦思 阅读(209) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3