A: 

c - what is it? E.g., if it is supposed to be UIImageView, you can do so:

[(UIImageView *)c setImage:[attributeDict objectForKey:@"img"]];
beefon
A: 

use this

[c setImage:(id)[attributeDict objectForKey:@"img"]];

Sajid_Hussain