1, 为数组中的每一个button添加点击事件;
[_buttonArray makeObjectsPerformSelector:@selector(addTarget:self action:(orderKind:) forControlEvents:UIControlEventTouchUpInside)];
1, 为数组中的每一个button添加点击事件;
[_buttonArray makeObjectsPerformSelector:@selector(addTarget:self action:(orderKind:) forControlEvents:UIControlEventTouchUpInside)];
转载于:https://www.cnblogs.com/code-Officer/p/6251055.html