ios Tally a Dictionary Value For Key Object
I guess I'm tired today. I can't come up with the correct way to tally a
number object in a for loop used to build a PDF report. I need to keep a
running total (+=) on this object and put it at the bottom of the report.
here is where I'm referring to it for the PDF context. (inside a for
loop). A dictionary was created from a fetched array.
myNewString = [decimalFormatter stringFromNumber:[resultsDict
valueForKey:@"dispatchMTMiles"]];
[myNewString drawInRect:CGRectMake(525, currentPageY, 40, 15)
withFont:loadLineFont lineBreakMode:NSLineBreakByTruncatingTail
alignment:NSTextAlignmentRight];
I need to keep a running total of the dispatchMTMiles which in core data
is a Integer16 type. Thanks for your help.
No comments:
Post a Comment