iOS代码添加UIButton
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
[btn setFrame:CGRectMake(0, ver_start_point, 320, grid_H*3+15+matrix.frame.size.height)];
[btn setTag:i];
[btn addTarget:self action:@selector(btnPress:) forControlEvents:UIControlEventTouchUpInside];
btn.backgroundColor = [UIColor redColor];
- (void)btnPress:(id)sender{
}