I've seem to have run into another problem...
It's actually something I'm kinda confused with and I'm not sure if I'm even doing it right. I'm trying to get something to happen with an IF statement, but the part that isn't working is:
if (textBox.text != nil)
{
message.hidden = NO;
}
else
{
message.hidden = YES;
button.hidden = NO;
}
The IF statement doesn't trigger. It does the (textBox != nil) result regardless if there is anything in it or not. I double and tripple checked connections, and there are no errors or warnings. Am I missing something simple again or is there another way to do this...?
It's actually something I'm kinda confused with and I'm not sure if I'm even doing it right. I'm trying to get something to happen with an IF statement, but the part that isn't working is:
if (textBox.text != nil)
{
message.hidden = NO;
}
else
{
message.hidden = YES;
button.hidden = NO;
}
The IF statement doesn't trigger. It does the (textBox != nil) result regardless if there is anything in it or not. I double and tripple checked connections, and there are no errors or warnings. Am I missing something simple again or is there another way to do this...?