I have three pictures, A.png, B.png and C.png, which I would like to show it on my tableview accessory area. I have record the category data A, B and C in my Lita database. I wanted to show different pictures for different categories. So I wrote the below code in the cellforrowatindexpath section.
if (category.table = @"A"){
accessoryView = A.png
}else if (category.table = @"B"){
accessoryView = B.png
}else{
accessoryView = C.png}
However, all the picture that shows on accessoryView is A.png. What did I do wrong? How could I fix this to show the pictures' properly.
I will be really appreciate if anyone can help me.