Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
- (IBAction)randomnum{ int randomNumber1 = 1+ arc4random() %(49); label1.text = [NSString stringWithFormat:@"d", randomNumber];
Warning:
Local declaration of randomNumber hides instance variable.
How can i get round this warning?
1
randomNumber1
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
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
1inrandomNumber1intentional or a typo?