Jul
10
iOS: UIAlertController text alignment
Published 12:07 Jul 10, 2016 by @ezra.
#Programming# Custom text alignment of UIAlertController:
let controller = UIAlertController(title: t, message: in...
Jul
07
Difference between nullable, __nullable and _Nullable in Objective-C
Published 12:07 Jul 07, 2016 by @ezra.
#Programming# From the Swift blog:
This feature was first released in Xcode 6.3 with the keywords __nullable and ...
Jun
28
OS X: Menu Bar Extra is invisible in macOS Dark Mode
Published 12:06 Jun 28, 2016 by @ezra.
#Programming# 周末提交的 APP 又被秒拒, 理由很简单, “Menu Bar Extra is invisible in macOS Dark Mode”, 菜单栏图标在黑色模式中看不到。
由于是第一次用黑白色的...
Jun
24
CentOS: Install Clang
Published 12:06 Jun 24, 2016 by @ezra.
#Technology# 本文主要关于在 CentOS 中安装 Clang 的相关步骤。
(以 CentOS 7 为例)
安装 libstdc++
如果你正在使用 CentOS 7 及以上的版本,请直接跳过此步骤。
wget ...
Jun
24
Ubuntu: Using Swift
Published 12:06 Jun 24, 2016 by @ezra.
#Technology# 本文主要关于在 Ubuntu 中安装和使用 Swift 的相关步骤。
(以 Ubuntu 15.10 为例)
下载 Swift
在 Swift.org 找到并下载对应的 Swift 版本。
解压 Sw...
Jun
01
OS X: csrutil
Published 12:06 Jun 01, 2016 by @ezra.
#Programming# El Capitan 加入了 Rootless 机制, 不再能够随心所欲的读写很多路径真是很难过。
Rootless 机制将成为对抗恶意程序的最后防线
要关闭 Rootless, 需要进入恢复系统...
18:05 May 17, 2016
Glücklich ist, wer vergisst, was nicht zu ändern ist.
快乐就是忘记不能改变的事情。
May
13
max-height: x% doesn't work on Chrome
Published 12:05 May 13, 2016 by @ezra.
#Programming# Some times using percentages for fluidity in layouts is tricky because you have to deal with contain...
May
12
Swift: Optional Protocol Methods Without @objc
Published 12:05 May 12, 2016 by @ezra.
#Programming# Objective-C 协议 (protocol) 在 Swift 中是一个特殊的存在, 当你使用 @objc 标记一个协议, LLVM 会生成一系列额外内容:
一个 isa 指针
运行时模块, 例...
May
10
Cocoa: Change Cursor
Published 12:05 May 10, 2016 by @ezra.
#Programming# The way to change the cursor when it's over an NSButton:
First, you should subclass NSButton first,...
May
06
CSS Selectors Level 4
Published 12:05 May 06, 2016 by @ezra.
#Programming# 关于 CSS Selectors Level 4 阶段性新特性的总结。
Negation pseudo-class :not
:not 用于将符合规则的元素剔除, 将样式规则应用于其他元素上。
在 C...