I have a really annoying problem with this if statement I am trying to get working. I have subclassed UITableViewCell with a custom cell that I am passing data from XML to methods housed in it.
Basically depending on what String is passed, a different image inside the cell will correspond and this is how I planned on setting it (open to other options/suggestions). From what I read I am writing the if statement 100% correct, but it gets skipped over when ran. Thoughts/comments appreciated! The line calling the method from the subclass and the actual method itself are below....
//Calling the method
[cell setTheImage:[[stories objectAtIndex:storyIndex] objectForKey:@"ImageNames"]];
//Method
-(void)setTheImage

NSString *)theImg
{
NSLog(theImg); //This displays the correct data in console so that makes it even more annoying that the if statement isn't working!
if([theImg isEqualToString:@"ImageOne"])
{
NSLog(@"Yes");
}
}