//First, define how many images will be in your array
//Just change to adjust to your own number of images
#define IMAGE_COUNT 20
//create an array to hold the images
NSMutableArray *imageArray = [[NSMutableArray alloc] initWithCapacity:IMAGE_COUNT];
//build array of images, cycling through image names
int i;
for(i=1; i<IMAGE_COUNT; i++)
[imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"frame-%d.png", i]]];
//another short example:
for (int c=0;c<300;c++)
{
NSString *imageName = [NSString stringWithFormat:@"name%d.png", c];
[UIImage imageNamed: imageName];
}
/*
Simple alert for iOS applications
*/
// Alloc and init the alert object
UIAlertView *alert = [[UIAlertView alloc]
// Alert window title
initWithTitle: NSLocalizedString(@"",nil)
// Message that will be displayed
message: NSLocalizedString(@"",nil)
// UIAlertView delegate (No protocol conformance required)
delegate: self
// Text for the main button
cancelButtonTitle: NSLocalizedString(@"No",nil)
// A second button or just nil for none
otherButtonTitles: NSLocalizedString(@"Yes",nil), nil];
// Display the alert
[alert show];
// Release the object
[alert release];