摘要:
都说Swift与Objective C最大的区别就是面向协议编程, 这个话要这么理解,到底什么场景下需要用到协议呢? 下面举个例子来说说我个人对于这个问题的一些看法 假如现在有一个页面需要弹出一个弹框, 弹框有很多不同的形式. 带"确认"和"取消"两个按钮的弹框 右上角有个"X"的关闭按钮的弹框 带 阅读全文
摘要:
接上一篇文章 Swift 模块化框架的实现以及模块之间的解藕 之后, 我们近一步让app在启动之前就调用ModuleManager的初始化方法. 在OC中是有一个main.m文件以及一个main函数的,但是在swift中被去掉了,取而代之的是在AppDelegate.m中使用 @UIApplicat 阅读全文
摘要:
一般比较大的项目都会使用到模块化的方式来管理各个组件, 这样每个模块的owner只需要专注于该模块的开发,而不需要关心其他模块. 于是本文简单介绍一下Swift模块化框架的简单实现. 模块化实现 整体思路是这样的, app启动后先初始化一个模块管理类ModuleManager, 然后由ModuleM 阅读全文
摘要:
1. 简单工厂模式 一个工厂类 内部用 switch case 创建不同对象 1 import UIKit 2 3 protocol Service { 4 var url: URL { get } 5 } 6 7 // dev阶段 8 class StagingService: Service { 阅读全文
摘要:
Due to the limitations of the app store, it is currently only supported to create an app for a script file. And when the script file is updated, you n 阅读全文
摘要:
Q: Why does smart protection not work? A: Please make sure the checkbox "Eye Protection" is on, app activated is not in the exception list and the cur 阅读全文
摘要:
Q: Why doesn't the selected game go to top? A: The game which include your favorite team will be always at top, your selected game will be the top #2. 阅读全文
摘要:
Q: Why does it jump to an incorrect page? A: Some categories, such as twitter, may need to log in in advance. Q: Which languages does Google Transla 阅读全文
摘要:
Q: Why is it a blank window after openning the app and connect mobile device? A: Please make sure that the screen of your mobile device is unlocked. Q 阅读全文
摘要:
Q: Which category can be previewed and selected in Finder? A: All the categories can be selected in Finder, and the "Files" and be previewed. Q: What 阅读全文