OK so the last couple of months all I've done is read books and tutorials in my free time... and I seem to be stuck with this problem... I came on here about a month ago and realized that I need to go back to the books but i have everything else for the app done I just can't get this stupid little thing checked off my list...
OK here it is im trying to make a random image viewer and when I hit the next player button it will rerandomize the images.
here is what I did:
I named all the images image1.png, image2.png and so on
In the .h file I have a outlet called imagePath
IBOutlet UIImageView *imagePath;
and a IBAction
- (IBAction)nextImage;
in the .m file
- (IBAction)nextImage {
(this is the peice of code someone gave me last month
NSString *imagePath = [NSString stringWithFormat
"image%d.png", (arc4random() % 10) + 1];
}
any help is greatly appreciated
OK here it is im trying to make a random image viewer and when I hit the next player button it will rerandomize the images.
here is what I did:
I named all the images image1.png, image2.png and so on
In the .h file I have a outlet called imagePath
IBOutlet UIImageView *imagePath;
and a IBAction
- (IBAction)nextImage;
in the .m file
- (IBAction)nextImage {
(this is the peice of code someone gave me last month
NSString *imagePath = [NSString stringWithFormat
}
any help is greatly appreciated