标签:margin with selector type get array event select tle
x_button = x_space + line * (x_space + buttonWidth);
y_button = y_space + row * (y_margin + buttonHeight);
NSString *title = dicArray[i][@"title"];
NSString *imageStr = dicArray[i][@"image"];
SEL selector = NSSelectorFromString(selectorArray[i]); // 反射机制,只要添加方法名的字符串,就能获得方法
HHSetButton *button = [HHSetButton buttonWithType:UIButtonTypeCustom];
[button addTarget:self action:selector forControlEvents:UIControlEventTouchUpInside];
标签:margin with selector type get array event select tle
原文地址:http://www.cnblogs.com/1018475062qq/p/7018711.html