Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (IBAction)randomButton:(id)sender
- {
- int v = arc4random() %3;
- if (v==1)
- {
- UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"1" message:@"" delegate:nil cancelButtonTitle:@"Back" otherButtonTitles:nil];
- [alertView show];
- }
- if (v==2)
- {
- UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"2" message:@"" delegate:nil cancelButtonTitle:@"Back" otherButtonTitles:nil];
- [alertView show];
- }
- if (v==3)
- {
- UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"3" message:@"" delegate:nil cancelButtonTitle:@"Back" otherButtonTitles:nil];
- [alertView show];
- }
- }
Add Comment
Please, Sign In to add comment