try like this..
-(UITextField *)startingTemperatureTextField {
if (![startingTemperatureTextField.text length] > 0 ){
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"Snowy Background.png"]]];
}
}
EDIT
I've completely misunderstood you question! Sorry!
So... you want to change the background if the user inputs a value into your "startingTemperatureTextField" that is less than 0, so i guess that somewhere in your code you have used this method :
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
just change this method like this :
-(BOOL)textFieldShouldReturn:(UITextField *)textField{
if( textField == self.startingTemperatureTextField ){
if ([self.startingTemperatureTextField.text intValue] < 0 ){
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"Snowy Background.png"]]];
}
}
textField resignFirstResponder];
return YES;
}