My program loads hundreds of images to a UITableView. I got it to work. The problem is that when I switch from Debug mode to Distribution, the images do not show up anywhere. It works fine in Debug mode, all the images show up. I even tested it on an actual Iphone and it works great. I don't know why switching to Distribution mode changes things. Any help will be appreciated. Here's the codes to load the images in cells:
UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:fileN ofType"png"]];
cell.image = img;
return cell;
UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:fileN ofType"png"]];
cell.image = img;
return cell;