
Delegate as external class in Objective-C
By: a guest on
Feb 26th, 2012 | syntax:
None | size: 0.39 KB | hits: 28 | expires: Never
@interface Control1Delegate : NSObject <UITextFieldDelegate> {
}
- (BOOL) textFieldShouldReturn:(UITextField *)textField;
@end
#import "Control1Delegate.h"
@implementation Control1Delegate
- (BOOL) textFieldShouldReturn:(UITextField *)textField {
[textField resignFirstResponder];
return YES;
}
@end
@property (nonatomic, retain) IBOutlet Control1Delegate *control1delegate;