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.
Swift 避免hardcode
原文:http://www.cnblogs.com/iyoubo/p/4615686.html