#Hello Edgerunners, welcome to the Night-City.

Welcome!

Disable the full swipe on a tableview cell in iOS 11

Implement like below: func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { let delete = UIContextualAction(style: .destructive, title: "Delete") { (action, sourceView, completionHandler) in ...

觉得自己年纪轻轻就猫狗双全,真不是一般人。

NYTimes Objective-C Style Guide/纽约时报 移动团队 Objective-C 规范指南

English Version 中文版本 English This style guide outlines the coding conventions of the iOS teams at The New York Times. We welcome your feedback in issues and pull requests. Also, we’re hiring. Thanks to all of our contributors. Introduction Here are some of the documents from Apple that informed t...

Swift 代码规范

这是什么 这是一份 Swift 代码规范和约定, 它存在的目的是: 提高代码明确性, 避免意外错误 减少冗余 增强美感及可读性 留白和空行 行首空白用 Tabs 而非 空格 文件结束时留一行空行 用足够的空行把代码分割成合理的块 不要在一行结尾留下空白, 更不要在空行留下缩进 let/var 在意图明确的情况下尽量使用 let foo = ... 而非 var foo = ..., 因为 let 可以产生安全清晰的代码。 return/break 与 条件判断 在条件判断中, return/break 应尽早被使用, 也就是说, 你应该使用: guard n.available els...

The Objective-C Style Guide/Objective-C 规范指南

English Version 中文版本 English This style guide outlines the coding conventions for {{ site.author }}. Introduction The reason I made this style guide was so that I could keep the code in our books, tutorials, and starter kits nice and consistent - even though we have many different authors working ...

微小的幸福就在身边。

深入理解 Runloop

RunLoop 是 iOS 和 OSX 开发中非常基础的一个概念, 这篇文章将从 CFRunLoop 的源码入手, 介绍 RunLoop 的概念以及底层实现原理. 之后会介绍一下在 iOS 中, 苹果是如何利用 RunLoop 实现自动释放池、延迟回调、触摸事件、屏幕刷新等功能的. 索引 RunLoop 的概念 RunLoop 与线程的关系 RunLoop 对外的接口 RunLoop 的 Mode RunLoop 的内部逻辑 RunLoop 的底层实现 苹果用 RunLoop 实现的功能 AutoreleasePool 事件响应 手势识别 界面更新 定时器 PerformSelecter 关...

Encryption: Generate RSA public key with modulus and exponent

Was trying to generate a RSA public key with RSA modulus(n) and RSA public exponent(e). I have tried to use SCZ-BasicEncodingRules-iOS, but unfortunately SCZ-BasicEncodingRules-iOS has wrong decoding algorithm for iOS 8 and above. It outputs key with incorrect prefix. If you faced with the same issu...

Swift: Generate values collection of Enum types

Have you ever done this before: public enum SomeEnumType: Int { case a, b, c public var allValues: [SomeEnumType] { return [.a, .b, .c] } } It's very annoying when you have to enter the cases twice, so I stumbled around in the bits and bytes and created an extension usable lik...

Linux Distributions Family Tree

Here is a family tree of Linux Distributions: ...

Ich habe nichts, mich zu beschweren.

Swift: What is @_silgen_name?

As a general Swift developer, one wouldn't come across this attribute, unless working with, say, porting Swift to some other platform. This reflects the fact that the attribute's only for compiler-internal use , and isn't really equivalent to C's asm attribute, since it doesn't change the calling c...

What's this?

The Night-City version of Hotodogo inspired by Cyberpunk 2077. Not finished yet.

Pinned Message

The Founder and CEO of Infeca Technology.

Developer, Designer, Blogger.

Big fan of Apple, Love of colour.

Feel free to contact me.

反曲点科技创始人和首席执行官。

开发、设计与写作皆为所长。

热爱苹果、钟情色彩。

随时恭候 垂询

Outer Square Inner Square