0

I am trying to make an xcode project that when the user hits a UIButton (IBAction) it sets the text of a UILabel to a random object in an NSMutable Array. I do not want to use case and switches as it takes to long for my situation.

Thanks for your time.

Jeevan Thandi
  • 158
  • 2
  • 11

1 Answers1

0

you assign the string to save the array and then on click you generate random number (max value is array size) and then assign to label i think it work

Waseem Shah
  • 2,219
  • 23
  • 23