Jan
03
CocoaPods: Encountered an unknown error (Pod::DSLError) during validation
Published 12:01 Jan 03, 2018 by @ezra.
#Programming# 在发布到 CocoaPods 是如果遇到下面的问题:
Validating podspec
-> UIMessageBar (1.0.0)
- ERROR | [iOS] unknow...
Dec
28
Swift: Codable With Custom Dates
Published 12:12 Dec 28, 2017 by @ezra.
#Programming# How do you decode a JSON feed that has several custom date formats? If you are lucky using a dateDec...
Dec
21
Swift: Access Levels
Published 12:12 Dec 21, 2017 by @ezra.
#Programming# You may not have noticed but there was a small but important change to the private access level in S...
Dec
18
LAContext.biometryType returns LABiometryType.none in iOS 11
Published 12:12 Dec 18, 2017 by @ezra.
#Programming# I'm trying to support FaceID in my application.
Running LAContect().canEvaluatePolicy(.deviceOwnerAu...
Sep
27
What is TIC Read Status?
Published 12:09 Sep 27, 2017 by @ezra.
#Programming# Apple staff gave the following answer:
TIC expands to "TCP I/O connection", which is a subsystem wi...
Sep
25
Disable the full swipe on a tableview cell in iOS 11
Published 12:09 Sep 25, 2017 by @ezra.
#Programming# Implement like below:
func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForR...
Sep
10
NYTimes Objective-C Style Guide/纽约时报 移动团队 Objective-C 规范指南
Published 12:09 Sep 10, 2017 by @ezra.
#Programming#
English Version
中文版本
English
This style guide outlines the coding conventions of the iOS teams at...
Sep
10
Swift 代码规范
Published 12:09 Sep 10, 2017 by @ezra.
#Programming# 这是什么
这是一份 Swift 代码规范和约定, 它存在的目的是:
提高代码明确性, 避免意外错误
减少冗余
增强美感及可读性
留白和空行
行首空白用 Tabs 而非 空格
文件结束时留一行空行...
Sep
10
The Objective-C Style Guide/Objective-C 规范指南
Published 12:09 Sep 10, 2017 by @ezra.
#Programming#
English Version
中文版本
English
This style guide outlines the coding conventions for {{ site.author }...
Aug
16
深入理解 Runloop
Published 12:08 Aug 16, 2017 by @ezra.
#Programming# RunLoop 是 iOS 和 OSX 开发中非常基础的一个概念, 这篇文章将从 CFRunLoop 的源码入手, 介绍 RunLoop 的概念以及底层实现原理. 之后会介绍一下在 iOS 中, 苹果...
Aug
12
Encryption: Generate RSA public key with modulus and exponent
Published 12:08 Aug 12, 2017 by @ezra.
#Programming# Was trying to generate a RSA public key with RSA modulus(n) and RSA public exponent(e).
I have tried...
Aug
10
Swift: Generate values collection of Enum types
Published 12:08 Aug 10, 2017 by @ezra.
#Programming# Have you ever done this before:
public enum SomeEnumType: Int {
case a, b, c
public var all...