File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ + (void) executeRequetsWithURL:(NSURL*)requestUrl {
37
37
@catch (NSException *exception) {
38
38
NSLog (@" Catched exception %@ " , exception);
39
39
}
40
-
41
- [[NSNotificationCenter defaultCenter ] postNotificationName: @" HMProductFound" object: nil userInfo: [NSDictionary dictionaryWithObject: product forKey: @" product" ]];
42
40
}
41
+
42
+ [[NSNotificationCenter defaultCenter ] postNotificationName: @" HMProductFound" object: nil userInfo: [NSDictionary dictionaryWithObject: product forKey: @" product" ]];
43
43
}
44
44
weakRequest = nil ;
45
45
}];
Original file line number Diff line number Diff line change 40
40
41
41
@property (nonatomic , strong ) NSString *commission_category;
42
42
43
+ - (NSString *) getCheapestPriceFormatted ;
44
+
43
45
@end
Original file line number Diff line number Diff line change @@ -23,4 +23,12 @@ @implementation Product
23
23
@synthesize listprice_savings;
24
24
@synthesize commission_category;
25
25
26
+ - (NSString *) getCheapestPriceFormatted
27
+ {
28
+ NSNumberFormatter *formatter = [[NSNumberFormatter alloc ] init ];
29
+ [formatter setNumberStyle: NSNumberFormatterCurrencyStyle];
30
+ [formatter setLocale: [[NSLocale alloc ] initWithLocaleIdentifier: @" de_DE" ]];
31
+ return [formatter stringFromNumber: [NSNumber numberWithInt: self .cheapest_price]];
32
+ }
33
+
26
34
@end
You can’t perform that action at this time.
0 commit comments