Howdy one and all,
I am trying to write my first iOS app that is not out of a book (though I guess I am stitching things together like crazy....)
At this point, I am attempting to initialize a mutable array, and then load it with images that are referenced by name (they are in with the project.)
This is what I have so far, and based upon what I see in the debugger, my array is empty.
- (void)viewDidLoad
{
txtLabel = [[UILabel alloc] init];
imageView = [[UIImageView alloc] init];
imageArray = [[NSMutableArray alloc] init];
seg = [[UISegmentedControl alloc] init];
imageArray = [[NSMutableArray arrayWithObjects:
[UIImage imageNamed:@"jupiter2.JPG"],
[UIImage imageNamed:@"waffles?.JPG"],
[UIImage imageNamed:@"enterprise.JPG"],
[UIImage imageNamed:@"wrunning.JPG"],
[UIImage imageNamed:@"ApolloCSM.JPG"],
nil] retain];
imageView.image = [UIImage imageNamed:@"happy-face.JPG"];
txtLabel.text = @"Hi there!";
[super viewDidLoad];
}
Thanks for any and all assistance.
Regards,
Steve O'Sullivan