Here is my entire sheet, I'm kinda lost so. My action btnResult is working just fine and getting the result i want. But i need to execute the action if the user only typed in numbers else they should get an error message.
can you finish the sheet, so i can see what you mean?
    - (IBAction)btnResult:(id)sender
    {
        float sum = (_tf1.floatValue * (_tf3.floatValue + 1) - (_tf2.floatValue * _tf3.floatValue));
        float divideOne = sum/3;
        float divideTwo = sum/3*2;
        float value1 = divideOne;
        int intValue1 = (int)value1;
        float fractional1 = fmodf(value1, (float)intValue1);
        if(fractional1 > .5f)
            intValue1++;
        float value2 = divideTwo;
        int intValue2= (int)value2;
        float fractional2 = fmodf(value2, (float)intValue2);
        if(fractional2 > .5f)
            intValue2++;
        _lblResult.floatValue = intValue1;
        _lblResult2.floatValue = intValue2;
        _lblAbove.hidden = NO;
        _lblBelow.hidden = NO;
        _lblResult.hidden = NO;
        _lblResult2.hidden = NO;
    }
 
     
     
     
    