上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页
摘要: @objc and dynamic Objective-C runtime visibility and the depths of dynamic dispatch in the modern Swift era. 5 December 2017 ∙ Objective-C Interop ∙ w 阅读全文
posted @ 2018-08-11 17:09 zzfx 阅读(354) 评论(0) 推荐(0)
摘要: Extensions can add new functionality to a type, but they cannot override existing functionality. 阅读全文
posted @ 2018-08-11 16:07 zzfx 阅读(143) 评论(0) 推荐(0)
摘要: protocol CommonTrait: class { func commonBehavior() -> String } extension CommonTrait { func commonBehavior() -> String { return "from protocol extens 阅读全文
posted @ 2018-08-11 15:42 zzfx 阅读(199) 评论(0) 推荐(0)
摘要: https://developer.apple.com/library/archive/documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/WindowsandViews/WindowsandViews.html#//apple_ref/doc 阅读全文
posted @ 2018-08-07 13:16 zzfx 阅读(132) 评论(0) 推荐(0)
摘要: 由于CoreGraphics框架有太多的API,对于初次接触或者对该框架不是十分了解的人,在绘图时,对API的选择会感到有些迷茫,甚至会觉得iOS的图形绘制有些繁琐。因此,本文主要介绍一下iOS的绘图方法和分析一下CoreGraphics框架的绘图原理。 一、绘图系统简介 iOS的绘图框架有多种,我 阅读全文
posted @ 2018-08-06 20:43 zzfx 阅读(363) 评论(0) 推荐(0)
摘要: NSArray与Array之间的关系如同NSString与String之间的关系,NSArray是类类型,而Array是结构体类型,一个是引用类型,一个是值类型,它们是怎样实现无缝转换的呢?Swift在底层能够将它们自动地桥接起来,一个NSArray对象桥接之后的结果是[AnyObject]数组(保 阅读全文
posted @ 2018-08-06 20:35 zzfx 阅读(349) 评论(0) 推荐(0)
摘要: Any class that does not inherit from another class is known as a base class. Swift classes do not inherit from a universal base class. Classes you def 阅读全文
posted @ 2018-08-03 19:59 zzfx 阅读(211) 评论(0) 推荐(0)
摘要: 2016-06-06 7388 作者:Olivier Halligon,原文链接,原文日期:2016-05-16 译者:walkingway;校对:Cee;定稿:numbbbbb 现在我们来重新回顾下前三弹模式匹配的各种语法 第一弹,第二弹,第三弹,第四弹是本系列的最后一篇文章,本章会教大家使用 i 阅读全文
posted @ 2018-08-02 11:57 zzfx 阅读(425) 评论(0) 推荐(0)
摘要: 钱包术语: wallet RIPEMD160 BASE58 Secp256k1 ECDSA abbr. elliptic curve digital signature algorithm 椭圆曲线数字签名算法 SHA256 椭圆曲线数字签名算法(ECDSA)是使用椭圆曲线密码(ECC)对数字签名算 阅读全文
posted @ 2018-08-01 16:02 zzfx 阅读(315) 评论(0) 推荐(0)
摘要: #define SIGSEGV 11 /* segmentation violation */ #define SIGSYS 12 /* bad argument to system call */ #define SIGPIPE 13 /* write on a pipe with no one 阅读全文
posted @ 2018-08-01 15:33 zzfx 阅读(180) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/nanyu/article/details/6475555 有人问这个问题: Code: try { std::cout << 10/0 << std::endl; } catch(...) { std::cout << "exception" << std 阅读全文
posted @ 2018-08-01 14:24 zzfx 阅读(886) 评论(0) 推荐(0)
摘要: 重载:同级、符号不同; 重写:继承关系、命名空间不同; 覆盖:无法查找、使用原来的函数;参考oc分类的函数。 阅读全文
posted @ 2018-07-19 15:37 zzfx 阅读(160) 评论(0) 推荐(0)
摘要: 重载:会生成不同的符号,不会导致符号冲突; 重写:符号相同,只支持继承体系中使用,不支持同级使用。 重写需要命名空间来做出区分。 阅读全文
posted @ 2018-07-18 10:43 zzfx 阅读(197) 评论(0) 推荐(0)
摘要: A concrete layout object that organizes items into a grid with optional header and footer views for each section. The items in the collection view flo 阅读全文
posted @ 2018-07-17 17:39 zzfx 阅读(612) 评论(0) 推荐(0)
摘要: protocol GameMode:class “You can limit protocol adoption to class types (and not structures or enumerations) by adding the class keyword must always a 阅读全文
posted @ 2018-07-17 14:53 zzfx 阅读(347) 评论(0) 推荐(0)
摘要: 方法inflate(int resource, ViewGroup root, boolean attachToRoot) 中 第一个参数传入布局的资源ID,生成fragment视图,第二个参数是视图的父视图,通常我们需要父视图来正确配置组件。第三个参数告知布局生成器是否将生成的视图添加给父视图。 阅读全文
posted @ 2018-07-09 15:46 zzfx 阅读(409) 评论(0) 推荐(0)
摘要: 面向类型编程; 面向对象编程与业务和属性相关; 面向类型编程与函数的符合相关 ; 阅读全文
posted @ 2018-07-07 21:42 zzfx 阅读(191) 评论(0) 推荐(0)
摘要: 1).ArrayList  ArrayList维护着一个对象数组。如果调用new ArrayList()后,它会默认初始一个size=10的数组。  每次add操作都要检查数组容量,如果不够,重新设置一个初始容量1.5倍大小的新数组,然后再把每个元素copy过去。  在数组中间插入或删除,都要 阅读全文
posted @ 2018-07-06 16:55 zzfx 阅读(303) 评论(0) 推荐(0)
摘要: 容量、操作、运算(两个集合类)。 核心是迭代器、比较器、数组、链表、哈希表。 阅读全文
posted @ 2018-07-06 16:47 zzfx 阅读(150) 评论(0) 推荐(0)
摘要: 对于Android开发者来说深入了解Java的集合类很有必要主要是从Collection和Map接口衍生出来的,目前主要提供了List、Set和 Map这三大类的集合 Collection接口主要有两种子类分别为List和Set,区别主要是List保存的对象可以重复 而Set不可以重复 而Map一般 阅读全文
posted @ 2018-07-06 16:17 zzfx 阅读(3369) 评论(0) 推荐(0)
上一页 1 ··· 55 56 57 58 59 60 61 62 63 ··· 101 下一页