iOS Programming Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

Extensions are not meant to add new properties and methods only. You extend types by adding new initializers, mutating methods, and by defining subscripts.