ios - how to send the xml parsing image data to ImageView.image -


i working on parsing, got image data form xml link sent detail view controller using shared delegate.

appdelegate *shareddelegate=(appdelegate*)[[uiapplication sharedapplication]delegate]; imageview.image=[uiimage imagenamed:shareddelegate.imagobj]; 

i got data in shareddelegate.image imageview.image got null value.

please me.

if getting string, use code :

appdelegate *shareddelegate=(appdelegate*)[[uiapplication sharedapplication]delegate]; nsdata * imagedata = [[nsdata alloc] initwithcontentsofurl: [nsurl urlwithstring: [nsstring stringwithformat:@"%@",shareddelegate.imagobj]]]; imageview.image = [uiimage imagewithdata: imagedata]]; 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -