Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-29-2010, 01:39 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 2
mark_d is on a distinguished road
Default Loading different images in a UIImageView

Hello,

I have a simple application that gets data from a web service, displays a list of items in a tableview and upon clicking on an item opens up a detail view. All of which works just fine. Part of the detail view is a UIImageView that gets an image loaded into it which is retrieved from a website. The UIImageView mode is set to Aspect Fill. When the view loads for the first time the image loads and is set in the image view correctly and the image is nice and crisp. When you go back to the table view and click on another item the next image is horribly scaled and looks dreadful. Even if you go back and click on the original item that looks dreadful as well.

The images are loaded asynchronously using the usual delegate methods, the chain of events being started each time in the viewWillAppear method of the detail view.

Any ideas what I might be doing wrong here? Any help would be greatly appreciated.
mark_d is offline   Reply With Quote
Old 04-30-2010, 11:47 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 162
web20devxer is on a distinguished road
Default

To tell you the truth, it is hard to diagnose your problem without seeing some sample code. and see what calls you're making
__________________
Iphone Developers Exchange --> iPhone Dev Exchange
Iphone Dev Tweets --> iPhone Developers Tweets
web20devxer is offline   Reply With Quote
Old 05-04-2010, 04:42 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 2
mark_d is on a distinguished road
Default

Quote:
Originally Posted by web20devxer View Post
To tell you the truth, it is hard to diagnose your problem without seeing some sample code. and see what calls you're making
Thanks for getting back to me. I have solved the problem by ensuring that I do not have to do any image manipulation on the device by resizing the images server side before they get to the phone. That may be a cop out, solving a problem by avoiding it but it is probably the cleanest and most efficient solution anyway
mark_d is offline   Reply With Quote
Old 10-14-2010, 05:41 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 2
muthiah is on a distinguished road
Default multiple image view creation dynamically

i stored 50 images in one folder . i want to retrieve the images to the uiimageview .. the image content change dynamically... based on the images count i have to create uiimageviews and scroll it and also zoom that ... how i retrieve the data programmatically.. here i place the code..


NSArray *filelist;
NSFileManager *filemgr;
int count=0;
int i;
int t=0;

filemgr = [NSFileManager defaultManager];
filelist = [filemgr directoryContentsAtPath: @"/myPath"];
count = [filelist count];

for (i = 0; i < count; i++)
{

NSLog (@"%@", [filelist objectAtIndex: i]);
UIImageView *thisImageView = [filelist objectAtIndexi)];
[thisImageView setFrame:CGRectMake(t, 0, 480, 320)];
[self.view addSubview:thisImageView];
[thisImageView release];
t+=480;
}



this is the error


terminate called after throwing an instance of 'NSException'
Program received signal: “SIGABRT”.
muthiah is offline   Reply With Quote
Reply

Bookmarks

Tags
uiimage, uiimageview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 333
21 members and 312 guests
Abidullah, baja_yu, cgokey, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, HowEver, iphonedevshani, jbro, JoeRCruso, mdpauley, n00b, newDev, seokwon lee, SLIC, stanny, Steven.C, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0