¡@

Home 

2014/10/15 ¤U¤È 10:04:54

iphone Programming Glossary: capitalizedamount

What is the right choice between NSDecimal, NSDecimalNumber, CFNumber?

http://stackoverflow.com/questions/1704504/what-is-the-right-choice-between-nsdecimal-nsdecimalnumber-cfnumber

like this one #import Foundation Foundation.h @interface Test NSObject float rate float amount int duration float capitalizedAmount @end @implementation Test float capitalizedAmount return amount pow 1.0 rate duration @end I want to access these methods.. @interface Test NSObject float rate float amount int duration float capitalizedAmount @end @implementation Test float capitalizedAmount return amount pow 1.0 rate duration @end I want to access these methods and setters with their names as strings since I.. definition Test obj Test alloc init NSNumber numberWithInt 10 ... float r r obj performSelector NSSelectorFromString @ capitalizedAmount I understand that this is not possible that performSelector will return an object and thus that capitalizedAmount should..