react-native-navigation的迁移库

Enum.m 373B

1234567891011121314151617181920212223
  1. #import "Enum.h"
  2. @implementation Enum
  3. - (int)get {
  4. return [self convertString:super.get];
  5. }
  6. - (int)getWithDefaultValue:(int)defaultValue {
  7. NSString* value = [super getWithDefaultValue:nil];
  8. if (value) {
  9. return [self convertString:value];
  10. } else {
  11. return defaultValue;
  12. }
  13. }
  14. - (int)convertString:(NSString *)string {
  15. return 0;
  16. }
  17. @end