- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
#import "NSNumber+Validate.h"
@implementation NSNumber (Validate)
+ (NSNumber*)validate:(NSNumber *)number
{
NSNumber* num = @0;
if(number != nil)
{
num = number;
}
return num;
}
@end