NSDateFormatter 语句不懂
如题:
switch(expression)
case 1 :statement break;
case 2 :statement break;
default :statement break;
expression必须NSInteger么
。。。。这样的就报错了
NSString *words=@"china";
switch (words) {
case @"china":
NSLog(@"china");
break;
default:NSLog(@"india");
break;
}