摘要: Spiral MatrixMedium Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input:[[ 1, 2, 阅读全文
posted @ 2019-01-12 19:44 孔凡凯凯 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le 阅读全文
posted @ 2019-01-05 01:43 孔凡凯凯 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.Return the quotient after dividin 阅读全文
posted @ 2019-01-05 00:37 孔凡凯凯 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 被XCode10坑的头大,和大佬沟通发版到底要不要牺iOS9.2以下用户的时候被大佬一句为什么我们的兼容性这一栏这么长?!!如图: ⏬⏬⏬⏬⏬⏬⏬⏬⏬ 我们家App: b.jpeg b.jpeg 🔼🔼🔼🔼🔼🔼🔼 看见没,就是这么长!! ⏬⏬⏬⏬⏬⏬⏬⏬⏬ 别人家App: a.png a 阅读全文
posted @ 2018-10-27 19:45 孔凡凯凯 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 遇到一个错误: 解决办法 网上搜了很多,都无效 可能仅适用我的情况,分享出来看看👀(万一有遇到相似的呢) 将 podspec 文件 ’ 替换成 " 详细信息: 从Github上看,一切都没有问题,直接执行: 也可以Clone下来,百思不得其解,最后对比了一下之前的Tag,发现做了一次 podspe 阅读全文
posted @ 2018-09-28 22:27 孔凡凯凯 阅读(3932) 评论(0) 推荐(0) 编辑
摘要: 以下是2018年10月23日更新 经过大约一个月的时间的适配,项目正式使用XCode10(以下简称为10 or XC10)大部分库都升级为Swift4.2(以下简称为 4.2 or S4.2),下面是适配过程中遇到的一些坑。 1. Swift4、Swift4.2混编 如果你对项目是小的独立项目,完全 阅读全文
posted @ 2018-09-18 19:24 孔凡凯凯 阅读(611) 评论(0) 推荐(0) 编辑
摘要: // 103. Binary Tree Zigzag Level Order Traversal // https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/description/ // swift // Definition for a binary tree node. public cl... 阅读全文
posted @ 2018-03-09 14:56 孔凡凯凯 阅读(163) 评论(0) 推荐(0) 编辑
摘要: iOS 系统方法支持直接获取拼音,避免了之前各种第三方引入各种MAP或者资源文件。下面是一个Swift版本的简单示例: // swift 4.0 func pinyin(_ string: String) -> String { let cfString = CFStringCreateMutabl 阅读全文
posted @ 2018-02-26 15:52 孔凡凯凯 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 一个iPhone X的适配让楼主受尽了自定义的苦,使用系统API多好,所以在楼主不懈的努力下,终于和组长达成一致:逐步用系统控件替换代码里面的自定义控件,第一个挨刀的就是 BlockAlertsAnd-ActionSheets,不是楼主不喜欢它或者它写的不好,而是因为这个好替换,可是啊,楼主维护的A 阅读全文
posted @ 2017-11-11 19:47 孔凡凯凯 阅读(231) 评论(0) 推荐(0) 编辑
摘要: CRASH : /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.6.21/UITableView.m:8042 检查 - (UITableViewCell *)tableView:(UITableView *) 阅读全文
posted @ 2016-12-24 21:14 孔凡凯凯 阅读(319) 评论(0) 推荐(0) 编辑