performSelector,addTarget

                   // [headerView.mSwitch performSelector:@selector(switchValueChange:) withObject:dic];

这个方法是直接去调用的,

而,

                    headerView.mSwitch addTarget:self action:@selector(switchValueChange:item) forControlEvents:<#(UIControlEvents)#>

这个方法是 跟 事件 结合在一块的

posted @ 2013-06-28 15:52  路在脚下,  阅读(167)  评论(0编辑  收藏  举报