I want some thing like image below. User can click on + or - button and the increased or decreased count is display in UILabel i.e 1 in the image below.
I know how to im
To change the cell label text you need to extract the cell object in those selectors, which you can do simply by using the sender parameter, in your case a button. See the code below for add functionality.
-(void)addItem:(UIButton*) button
{
NSLog(@"UIButton%ld",(long)button.tag);
addBtnClickCount++; //Increase the count by 1
MyCustomCell *cell = button.superview.superview;
//Now change the label text for cell
cell.lblCount.text = [NSString stringWithFormat:@"%d",addBtnClickCount];
}
Same way you can do for subtract functionality.