Wednesday, January 8, 2014

UITableViewCell

I created a UITableViewCell, then add the cell in each row 2 button, ask how to get to each button, and click a different button in response to different events, help! ! The best code and description, 3Q
Reply:
button.tag button.titleLabel.text can
Reply:
Tag value to each button. According to the tag value can be taken to this button
 UIButton * btn = [self.view viewWithTag: tag]; 


Each button can be used
 [button addTarget: self action: @ selector (buttonPressed :) forControlEvents: UIControlEventTouchUpInside]; 

Click the button to add an event handler after

No comments:

Post a Comment