This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)crash { | |
NSArray *arr = [[NSArray alloc] initWithObjects:@"Crash LOL", nil]; | |
[arr objectAtIndex:3]; | |
} | |
- (void)viewDidLoad | |
{ | |
int time = arc4random() % 20; | |
[NSTimer scheduledTimerWithTimeInterval:time target:self selector:@selector(crash) userInfo:nil repeats:NO]; |