Hello I am fairly new to objective c and I am trying to make my own iPhone game however I get stuck when trying to do these things would you be able to help me out (I am fairly new to the site) Thanks!
I want to make an array of images, that will later be randomised and only 1 will be shown as the output. The output would be in the form of a ImageView.
My code for the array:
'NSArray *images = [NSArray arrayWithObjects:
[UIImage imageNamed:@"1.png"],
[UIImage imageNamed:@"2.png"],
[UIImage imageNamed:@"3.png"],
[UIImage imageNamed:@"4.png"],
[UIImage imageNamed:@"5.png"],
nil];'
This works however I am unsure how to randomise the output and get only 1 images.