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
Post a Comment