UIButton *btnAdd = [[UIButton alloc] init]; [btnAdd setBackgroundImage:[UIImage imageNamed:@"019.png"] forState:UIControlStateNormal]; btnAdd.frame = CGRectMake(x,y, WIDTH_HIGHT, WIDTH_HIGHT);// [self.view addSubview:btnAdd];
定义一个函数,如何将这个函数作为单击按钮的响应事件?
|