Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

How to set target for a button, which is present in a custom cell to its Controller?

addToCartButton  addTarget:self action:@selector(addToCartPressed:) forControlEvents:UIControlEventTouchUpInside];

Instead of addToCartButton target to 'self' how can i pass it to its viewController

share

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.