objective c - Constantly Returning True -
After
To return to my boolean return for some reason, even when someone is called during another trial It seems to be done:
if ([photoId isqualToString: object]) {likes = TRUE; Cell.likedButton.imageView.image = [UIImage imageNamed: @ "Like BTNPNG"]; break; } Other {likes = false; Cell.likedButton.imageView.image = [UIImage image named: @ "Like button." "};}
To make a bit more clear, photoid is sometimes equal to the object but in one case, it is not equal to it. Files are changing the team but, Boolean seems to return only yes.
Any idea why this is happening? Is it something to break me?
You should only break a
statement> when you enter a You want to end the loop maybe you are conditional within a loop, so once the sentence is correct, your entire loop stops (break).
Comments
Post a Comment