countryField=[[UITextField alloc]initWithFrame:CGRectMake(0,0,100,25)];
countryField.textColor = [UIColor blackColor];
countryField.font = [UIFont systemFontOfSize:15.0];
countryField.backgroundColor = [UIColor redColor];
countryField.keyboardType = UIKeyboardTypeDefault;
countryField.enabled=NO;
countryField.delegate = self;
[countryField addTarget:self action:@selector(getCountry:) forControlEvents:UIControlEventEditingChanged];
[myView addSubview:countryField];
-(void)getCountry:(id)sender { printf("\n hai i am in getCountry method"); }