不知道為什麼這段代碼一運行就崩潰。
- (IBAction)logOutBtnDown:(id)sender {
[PFUser logOut];
NSArray *quotes;
int r;
quotes = [NSArray arrayWithObjects:
@"R u done yet",
@"Log in again",
@"Try Me",
@"SMD",
@"We can do this all day",
@"IDC your eating up ur RAM",
"Please just connect to the servers",
@"You are not giving up are u",
@"Forget it I quit",
@"Imma tell TDK",
nil];
r = arc4random() % 10;
[_welcomeLabel setText:[NSString stringWithFormat:@" %@", [quotes objectAtIndex: r]]];
}
"Please just connect to the servers",少寫了個@吧?