Sunday, September 29, 2013

NSString into UInt16 data type

I defined a UITextField * string, then the need to string.text content (an integer) is assigned to a number of type UInt16 value, string.text data type should be NSString type, that is, the number of type NSString into UInt16 type number, seeking advice ~

Reply:
NSString's intValue method, and then turn int Uint16

No comments:

Post a Comment