次のカスタムオブジェクトがあります。
@interface LoadDescription : NSObject
@property (nonatomic) float start, stop, startMagnitude, stopMagnitude;
@end
コントローラの1つにプロパティとしてオブジェクトがあります。
@property (nonatomic, strong) LoadDescription *editingLoad;
しかし、editingLoadプロパティ内でプロパティを設定/取得しようとすると...
float tableValue = [textField.text floatValue];
NSLog(@"value in table is %f", tableValue);
self.editingLoad.startMagnitude = tableValue;
NSLog(@"Load magnitude is %i", (int)self.editingLoad.startMagnitude);
...そしてiOSを実行すると、コンソール出力は、tableValueが入力したものであるのに対し、self.editingLoad.startMagnitudeは常に0.00000000であることを示しています。これにより、setter/getterに問題があると思われます。
該当する場合は、ARCを実行しています。
助けていただければ幸いです。よろしくお願いします。