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

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -