I am fetching a json from server, json have some attributes where the value is in french. when I am assigning this french characters string to UILabel, it’s giving me null.
How can I put this string in UILabel.
I am doing like this
cell.title.text =[dealDictionary objectForKey:@"title"];
cell.description.text =[dealDictionary objectForKey:@"description"];
description and title both are in French.
Are you certain that
cell.titleexists and that it is what you think it is? To persuade yourself that this should work, change your code like this:If that doesn’t work, there’s something wrong with
cellor withcell.title.If that works but your code doesn’t, then perhaps there is something funny about what kind of object
[dealDictionary objectForKey:@"title"]is. Try assigning it to an NSString and see what you get when you do.In other words, you are making too many assumptions in a single line of code. Break down each assumption and test it. That is How To Debug.