react-native-navigation的迁移库

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