2018年3月6日

GCD 线程应用

该文被密码保护。 阅读全文

posted @ 2018-03-06 17:46 东方🐺 阅读(6) 评论(0) 推荐(0) 编辑

iOS开发 - Protocol协议及委托代理(Delegate)

摘要: 因为Object-C是不支持多继承的,所以很多时候都是用Protocol(协议)来代替。Protocol(协议)只能定义公用的一套接口,但不能提供具体的实现方法。也就是说,它只告诉你要做什么,但具体怎么做,它不关心。 当一个类要使用某一个Protocol(协议)时,都必须要遵守协议。比如有些必要实现 阅读全文

posted @ 2018-03-06 16:47 东方🐺 阅读(404) 评论(1) 推荐(0) 编辑

Objective-C Inheritance

摘要: One of the most important concepts in object-oriented programming is that of inheritance. Inheritance allows us to define a class in terms of another 阅读全文

posted @ 2018-03-06 16:09 东方🐺 阅读(213) 评论(0) 推荐(0) 编辑

内存调试工具说明-演示

摘要: 在开发过程中,有时我们会遇到内存泄漏的情况。苹果提供了一个强大Instruments工具来检测iOS应用内存泄漏情况。 以下对Instruments工具进行简单说明,通过实例演示检测内存泄漏的问题。 Instruments工具 Instruments是用于动态调追踪和分析OS X和iOS的代码的性能 阅读全文

posted @ 2018-03-06 15:48 东方🐺 阅读(378) 评论(0) 推荐(0) 编辑

iOS 自适应高度,改变字体颜色

摘要: #define kMainBoundsWidth ([UIScreen mainScreen].bounds).size.width //屏幕的宽度 #define kFont [UIFont systemFontOfSize:17.f] //字体大小 #define kLineSpacing 7 //行间距 - (void)view... 阅读全文

posted @ 2018-03-06 15:34 东方🐺 阅读(444) 评论(0) 推荐(0) 编辑

导航