Any Ideas why my If Else Statement is not working? If I change the statment to read, if 1 == 1, it works fine. I'm sure alabel.status is bringing 50,(the debugger shows its returning 50). But alabel.status for some reason is not equal to @"50".....the same is true if i Return a word and not a number. Thank you. Code below.
if (alabel.status == @"50") {
UIImage *image = [UIImage imageNamed"image1.png"];
cell.image = image;
}
else {
UIImage *image = [UIImage imageNamed"image2.png"];
cell.image = image;
}
Thank you.
if (alabel.status == @"50") {
UIImage *image = [UIImage imageNamed"image1.png"];
cell.image = image;
}
else {
UIImage *image = [UIImage imageNamed"image2.png"];
cell.image = image;
}
Thank you.