问题描述
- 每次运行代码后iphone就会崩溃
-
不知道为什么这段代码一运行就崩溃。- (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",少写了个@吧?
解决方案二:
确实是少写了一个@。。。
时间: 2024-12-03 03:59:06