Random Number Generator

Posted by skinni on Stack Overflow See other posts from Stack Overflow or by skinni
Published on 2010-05-15T12:26:29Z Indexed on 2010/05/15 12:34 UTC
Read the original article Hit count: 190

Filed under:
- (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

© Stack Overflow or respective owner

Related posts about objective-c