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 objectAtIndex

i)];
[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”.