Well, first you need to follow the protocol in your header:
@interface MyViewController : UIViewController < YOUR DELEGATE PROTOCOL HERE ,
UITableViewDelegate>{ } @end
This is the most common mistake, anyway.
Also just make sure you install the delegate. You can usually do this as follows:
myObject.delegate = self;
Although some classes do this upon initialization:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"MY APP"
message:@"HELLO"
delegate: self
cancelButtonTitle:@"CLOSE"
otherButtonTitles:nil];
source share