I am using two DatePicker in CustomViewController and after calculating get the value of difference between two dates.which is calculated .now in another controller I have to put date value into a label.
Value in label should be in integer form.but what I have to do is if the value is <=5 days then it should be show in red color, if value is <=8 days then it should be in yellow and finally if >=8 then green color should be appear in label.
So I am not getting that how I put conditional statement so I can move on.I already done calculation part.
Here is my code where I get this warning:
int i = 5;
if (cell.lblDate.text <=i) {
cell.lblDate.textColor = [UIColor redColor];
}