摘要: 在代码中使用Autolayout时,大家都会使用NSDictionaryOfVariableBindings这个宏,这个宏可以生成一个变量名到变量值映射的Dictionary。比如NSDictionaryOfVariableBindings(button1, button2)将会生成一个{ @"button1" = button1, @"button2 = button2 }的Dictionary。它是怎么做到的呢?我们来看看这个宏的定义:#define NSDictionaryOfVariableBindings(...) _NSDictionaryOfVari 阅读全文
posted @ 2013-12-08 02:23 yingkong1987 阅读(580) 评论(0) 推荐(0) 编辑