Tuesday, 6 May 2014

Uitableviewcell disable the uibutton for editing time

      for (int row = 0, rowCount = [myTable numberOfRowsInSection:0]; row < rowCount; ++row) {
            
            UITableViewCell *cell = [myTable cellForRowAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0]];
            UIButton *forwordbtn1 = (UIButton *)[cell viewWithTag:410];
            forwordbtn1.enabled = NO;
        }


Here 410 is uitableviewcell button tag value.

No comments:

Post a Comment