我对核心数据对象有一个奇怪的问题。
我有这个对象:
2012-12-17 20:20:54.756 test[8581:c07] <NSManagedObject: 0xaa52ef0> (entity: Card; id: 0xaa4ec40 <x-coredata://CF3F8F22-FE94-452E-9BFB-D4216847C8D4/Card/p14> ; data: {
chlore = 0;
"continue_filtering" = 1;
"created_at" = "2012-12-01 09:55:05 +0000";
customer = "0x7533700 <x-coredata://CF3F8F22-FE94-452E-9BFB-D4216847C8D4/Customer/p1>";
"cyanuric_acid" = 9;
date = "2012-12-01 00:00:00 +0000";
"electricity_day_used" = 67;
"electricity_night_used" = 67;
"end_time" = "2012-12-01 10:54:00 +0000";
"filtering_end" = "2000-01-01 09:54:00 +0000";
"filtering_start" = "2000-01-01 09:54:00 +0000";
furniture = 1;
"furniture_to_get" = "";
heater = 0;
id = 39;
miscellaneous = Zer;
ph = "7,2";
"regulation_temperature" = 56;
"start_time" = "2012-12-01 10:54:00 +0000";
"treatment_anti_algae" = 5;
"treatment_auto_stop_filling" = 0;
"treatment_chlore" = 5;
"treatment_filling_start" = 0;
"treatment_floculant" = 0;
"treatment_hypo_stick" = nil;
"treatment_hypochlorite" = 5;
"treatment_pebble" = 5;
"treatment_ph_less" = 5;
"treatment_ph_plus" = 5;
"updated_at" = "2012-12-01 09:55:05 +0000";
"water_quality" = "Eau bleue limpide";
"water_used" = 56;
works = (
);
})
但是当我做 card.treatment_ph_less 它返回空值。你知道为什么吗?这个问题的根源是什么?
我的字段被定义为双精度。