react-native-navigation的迁移库

Double.m 355B

1234567891011121314151617181920212223242526
  1. #import "Double.h"
  2. @interface Double()
  3. @property (nonatomic, retain) NSNumber* value;
  4. @end
  5. @implementation Double
  6. - (double)get {
  7. return [[super get] doubleValue];
  8. }
  9. - (double)getWithDefaultValue:(double)defaultValue {
  10. if (self.value) {
  11. return [self.value doubleValue];
  12. } else if (defaultValue) {
  13. return defaultValue;
  14. }
  15. return 0;
  16. }
  17. @end