I am new to Xcode. I have variables x and y as random numbers from 1 to 100. I want the screen to print x and y when a button is pressed. How do I do that?
my code is:
- (IBAction)printtwonumbers:(id)sender;
{
x = arc4random() %100;
y = arc4random() %100;
label1 setText: [x];
label2 setText:[x];
}