you cannot put a void function into - (IBAction)ButtonPress:(UIButton *)sender change it as follow:
- (IBAction)ButtonPress:(UIButton *)sender {
if (sender != self.done)
return;
if (self.zahlencode.text.length > 0)
{
zz =[self.zahlencode.text intValue];
if(zz == a)
{
[self performSegueWithIdentifier:@"1" sender:self];
}
}
}