作为一个IB党,布局代码能少写就少写。

对于在nib文件中不能直接设置的属性,在Runtime Attributes中进行设置。

参考链接: https://developer.apple.com/library/mac/recipes/xcode_help-interface_builder/Chapters/AddUserDefinedRuntimeAttributes.html