int v = 0; NSNumber *number= [NSNumber numberWithInt:v]; //将int转换为NSNumber int v = [number intValue]; //将NSNumber转换为int