How can I check if my UILabel value is above 0? I just need to do an if statement. I am doing this because I need to find out if the number is 1, 2, 3 etc and then if it is, I need to call a certain action.
I have tried the following code but it does not work and instead shows an error:
if ([[label text] intValue] > 0){
}
EDIT: I found another piece of code which was provoking this not to work. The code above now fully works.
1 Answer