My app checks if an NSString is empty when it launches, like this:
if ([checkfieldstring1 isEqualToString:@""]) {
checkboxButton.hidden = YES;
}
else {
checkboxbutton.hidden = NO;
}
However, when there is an empty string, the button is not being hidden. I know this method works when I hook it up as an IBAction to a button, but not on ViewDidLoad...