iphone - Image downloaded with NSURLConnection displays correctly on simulator, not at all on iPod -



iphone - Image downloaded with NSURLConnection displays correctly on simulator, not at all on iPod -

i'm downloading image (.jpg) webserver , displaying total screen in uiimageview. in simulator image displayed correctly, when loaded application on ipod (ios 4.3.2) blank white page. nsdata image nsurlconnection , set in viewdidload code:

uiimage *map = [uiimage imagewithdata:thedata]; mapview.image = map;

my mapview setup without image in uiview in interface builder. have toolbar isn't showing on device, uiimageview shows expected on simulator. has seen similar behavior?

would seek code?

- (void)viewdidload { uiimage *img = [[uiimage imagewithdata:[nsdata datawithcontentsofurl:[nsurl urlwithstring:@"http://xxxxxxx/xxxx.jpg"]]] retain]; if (img != nil) { mapview.image = img; [img release]; } [super viewdidload]; }

it perchance not ok you, try...

iphone ios uiimageview ipod-touch

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -