I have a UIButton on a Custom UITableViewCell, i have a method “done”.
How can i get the CustomTableViewCell via the Button?
-(IBAction)done:(id)sender {
(CustmCell((UIButton)sender).viewTheButtonIsOn...).action
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer by CodaFi is most likely enough but it does make the assumption that the button is added directly to the table cell. A slightly more complicated but safer bit of code could be something like: