Swift 避免hardcode

To make sure you don’t have any more hardcoded values in your code, create properties. This way, if you ever need to change these values, you only have to worry about changing them in one place in your code.

posted @ 2015-07-02 12:17  uu2008  阅读(207)  评论(0编辑  收藏  举报