I want to compare 2 numbers.
- The user has to enter a code(here 1) in and Textfield in an ViewController.
- The entered number will be compared with each other if it matches the app should switch to an other tab that is defined in each code.
and this is what i got so far
int a,b,c,zz;
a=1;
b=2;
c=3;
- (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if (sender != self.done)
return;
if (self.zahlencode.text.length > 0)
{
zz =self.zahlencode.text;
if(zz == a)
{
zweiViewController *source = [segue sourceViewController];
}
}
}