4

when i use this method

-(void)textFieldDidBeginEditing:(UITextField *)textField 

it gives me an error

use of undeclared identifier 'textFieldDidBeginEditing'

tell me the solution..

4

1 回答 1

1

编辑:

yourTextField.delegate = self;

我想你忘了这个:

@interface YourViewController : UIViewController <UITextFieldDelegate>
于 2012-08-08T11:44:05.050 回答