iphone - How can i show user avatar image using xmpp framework in objective c? -
i creating chat application iphone using xmppframework. want display user list in uitableview user name , photo, , using
nsdata *photodata = [[[self appdelegate] xmppvcardavatarmodule] photodataforjid:user.jid]; if (photodata != nil) cell.imageview.image = [uiimage imagewithdata:photodata]; else cell.imageview.image = [uiimage imagenamed:@"blank_image~iphone.png"];
but returns nil always.
please help..
nsdata *photodata = uiimagepngrepresentation([[[self appdelegate] xmppvcardavatarmodule] photodataforjid:user.jid]); if (photodata) cell.imageview.image = [uiimage imagewithdata:photodata]; else cell.imageview.image = [uiimage imagenamed:@"blank_image~iphone.png"];
Comments
Post a Comment