- (IBAction)randomnum{
int randomNumber1 = 1+ arc4random() %(49);
label1.text = [NSString stringWithFormat:@"d", randomNumber];
Local declaration of randomNumber hides instance variable.
How can i get round this warning?
thanks
- (IBAction)randomnum{
int randomNumber1 = 1+ arc4random() %(49);
label1.text = [NSString stringWithFormat:@"d", randomNumber];
Local declaration of randomNumber hides instance variable.
How can i get round this warning?
thanks
You had some instance variable of the class with the same name of your randomNumber1 or randomNumber. Recheck for that and change the name, you would be fine