HI, La création d'un UItextField essayant d'obtenir le tag lors de l'édition s'est terminée. Je reçois EXC_BAD_ACCESS lorsque le showTag est appelé:Étiquette sur UItextField reçue EXC_BAD_ACCESS
UITextField *text = [[[UITextField alloc] initWithFrame:CGRectMake(195.0, (m*30)+1 , 70.0, 23.0)] autorelease];
text.keyboardType = UIKeyboardTypeDecimalPad;
text.tag=MyintValue;
[text addTarget:self action:@selector(showTag:) forControlEvents:UIControlEventEditingDidEnd];
[scrollView addSubview:text];
- (IBAction)showTag:(UITextField*)sender{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"%@", =[sender tag] ] message:@”" delegate:self cancelButtonTitle:@"Back" otherButtonTitles:nil];
[alert show];
[alert release];
}
Merci Vous
MyintValue est 0? –