摘要: 参考资料: https://www.jianshu.com/p/734341f7c242 https://www.jianshu.com/p/55038871e7de 两天时间探索,期间不知道遇到了多少问题,各种google和Stack Overflow,甚至都求助了群友的力量。期间也想过放弃,还好 阅读全文
posted @ 2019-05-23 20:55 Dast1 阅读(1149) 评论(0) 推荐(0) 编辑
摘要: 最近在看一本书《Effective OC 2.0》,今天看到有个tip是OC适中循环各自优劣性,作者最终推荐此块循环。 阅读时思考了下块循环是否方便实现内部循环终止外部循环的问题。 于是做了如下验证,代码如下: 1 // 2 // main.m 3 // 块循环最具优势! 4 // 5 // Cre 阅读全文
posted @ 2019-04-03 01:16 Dast1 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 1 //用playground运行即可 2 import UIKit 3 4 var str = "Hello, playground" 5 6 let lTestPointsOne : [(Double, Double)] = [(0,0)] 7 let lTestPoints : [(Doubl 阅读全文
posted @ 2019-03-14 11:07 Dast1 阅读(1059) 评论(0) 推荐(0) 编辑
摘要: 一、NSOperation 抽象类 NSOperation 是一个"抽象类",不能直接使用。抽象类的用处是定义子类共有的属性和方法。 NSOperation 是基于 GCD 做的面向对象的封装。 相比较 GCD 使用更加简单,并且提供了一些用 GCD 不是很好实现的功能。 苹果公司推荐使用的并发技术 阅读全文
posted @ 2018-01-05 20:48 Dast1 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 效果如图: 代码如下: // // ViewController.swift // TwoSidedView // // Created by mayl on 2017/12/14. // Copyright © 2017年. All rights reserved. // import UIKit 阅读全文
posted @ 2017-12-14 23:31 Dast1 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: 一、对swift工程 经实践,网上的方法都无法成功,后来思考DEBUG宏定义方式,经实测有效,方式如下: 注意:不能把swift flags 小三角折叠后双击设置-DTarget4AppStore, 这样会自动清空之前生成或定义的宏定义 #if Target4AppStore self.view.b 阅读全文
posted @ 2017-04-12 18:03 Dast1 阅读(1147) 评论(0) 推荐(0) 编辑
摘要: 在每次添加udid时,都需要手动去开发者网站更新PP文件,下载配置到Xcode和更新PP文件到jenkins所有工程。是一个很耗时的操作。 使用fastlane match可在小组成员之间更方便的统一管理证书和PP文件。 分步指南 安装fastlane: ① Make sure you have t 阅读全文
posted @ 2017-03-24 18:43 Dast1 阅读(5879) 评论(0) 推荐(0) 编辑
摘要: 无意间看到巧神的文章时,感觉非常兴奋,此文章正好解决了公司目前项目的痛点。 读到以下关键一段时,不甚明了,故自己做了实验分享给有缘人。 “我们的每个课程的资源文件都具有相同的文件名,例如首页背景都叫 HomeBackgroundBg.png ,由于每个课程背景不一样,所以我们在工程中,每一个课程 t 阅读全文
posted @ 2017-03-08 17:24 Dast1 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.swift 3 // Test4SwiftyUserDefaults 4 // 6 // Copyright © 2017年. All rights reserved. 7 // 8 9 import UIKit 10 11 class ViewCo 阅读全文
posted @ 2017-01-14 18:32 Dast1 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 资料来源 : http://github.ibireme.com/github/list/ios GitHub : 链接地址 简介 : A delightful iOS and OS X networking framework. 推荐参考 : http://afnetworking.com htt 阅读全文
posted @ 2015-12-04 21:35 Dast1 阅读(458) 评论(0) 推荐(0) 编辑