【发布时间】:2011-03-23 10:40:44
【问题描述】:
如果注释nslog-line,就会出错:
语义问题:使用未声明 标识符“警报”
switch ([[array objectAtIndex:0]intValue]) {
case 2:
NSLog(@"Allergie alarm"); << commenting this, gives me an error!!!
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle: @"blabal"
message: @"balbalb"
delegate: nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil, nil];
[alert show];
[alert release];
break;
default:
break;
}
【问题讨论】:
标签: iphone objective-c switch-statement