I have a custom UITableViewCell which has a text field inside it. I have created it using IB and have a custom class with it.

Now, my issue is that I want to setup the text field so that during text entry if the user clicks outside the text field (without hitting the return/done key on the keypad), the field resigns first responder. I understand, that do that I need to handle the Touch Up Inside Event. However my tableview class never receives this event even though I have done the connections. I am assuming that its because its not subclass of UIcontrol, which I cant make it as it needs to be UITableViewCel.

So whats the solution?? How do I receive these events??

Header File:

```
#import <UIKit/UIKit.h>

@interface MMSingleTextFieldCell : UITableViewCell <UITextFieldDelegate>

// Properties
@property (weak, nonatomic) IBOutlet UITextField *singleTextField;
// Methods
- (IBAction)eventTouchUpOutside:(id)sender;
- (IBAction)eventTouchUpInside:(id)sender;
@end

```

Class File:

```
#import "MMSingleTextFieldCell.h"

@implementation MMSingleTextFieldCell

@synthesize singleTextField;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)eventTouchUpOutside:(id)sender {
    [singleTextField resignFirstResponder];
}

- (IBAction)eventTouchUpInside:(id)sender {
    [singleTextField resignFirstResponder];

}

```