Skip to content

Instantly share code, notes, and snippets.

@pnicholls
Created July 2, 2011 05:41
Show Gist options
  • Save pnicholls/1059765 to your computer and use it in GitHub Desktop.
Save pnicholls/1059765 to your computer and use it in GitHub Desktop.
- (id)init
{
self = [super init];
if (self != nil)
{
dataPages = [[NSArray alloc] initWithObjects:
[NSDictionary dictionaryWithObjectsAndKeys:
@"Page 1", @"pageName",
@"Some text for page 1", @"pageText",
nil],
[NSDictionary dictionaryWithObjectsAndKeys:
@"Page 2", @"pageName",
@"Some text for page 2", @"pageText",
nil],
[NSDictionary dictionaryWithObjectsAndKeys:
@"Page 3", @"pageName",
@"Some text for page 3", @"pageText",
nil],
[NSDictionary dictionaryWithObjectsAndKeys:
@"Page 4", @"pageName",
@"Some text for page 4", @"pageText",
nil],
[NSDictionary dictionaryWithObjectsAndKeys:
@"Page 5", @"pageName",
@"Some text for page 5", @"pageText",
nil],
nil];
}
return self;
}
NSMutableArray *images = [[NSMutableArray alloc] init];
[images addObject:[UIImage imageNamed:@"image1.png"]];
[images addObject:[UIImage imageNamed:@"image2.png"]];
[images addObject:[UIImage imageNamed:@"image3.jpg"]];
[images addObject:[UIImage imageNamed:@"image4.png"]];
[images addObject:[UIImage imageNamed:@"image1.png"]];
[images addObject:[UIImage imageNamed:@"image2.png"]];
[images addObject:[UIImage imageNamed:@"image3.jpg"]];
[images addObject:[UIImage imageNamed:@"image4.png"]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment