How to compare data in iPhone sdk
I am using the condition,but it don't go to the if condition, every time
goes to the else condition.
if ([[dict2 valueForKey:@"meeting_location"] isEqual:@""])
{
lbllocation.text = @"-----";
}
else
{
lbllocation.text = [NSString stringWithFormat:@"Location:
%@",[dict2 valueForKey:@"meeting_location"]];
}
Output came from Webservice:-
"meeting_location" = "";
"meeting_time" = "";
"meeting_with" = "";
No comments:
Post a Comment