¡@

Home 

2014/10/15 ¤U¤È 10:13:39

iphone Programming Glossary: scanint

How can I convert a NSString representation of a time value into two NSInteger's containing the hour and minute?

http://stackoverflow.com/questions/3432260/how-can-i-convert-a-nsstring-representation-of-a-time-value-into-two-nsintegers

this question NSScanner timeScanner NSScanner scannerWithString ...the time string... int hours minutes timeScanner scanInt hours timeScanner scanString @ intoString nil jump over timeScanner scanInt minutes NSLog @ hours d minutes d hours minutes..

Objective-C: Find numbers in string

http://stackoverflow.com/questions/4663438/objective-c-find-numbers-in-string

you could scan direct to the int scanner scanUpToCharactersFromSet numbers intoString NULL int number scanner scanInt number If the # marks the start of the number in the string you could find it by means of scanner scanUpToString @ # intoString..

how do I get a substring in iOS?

http://stackoverflow.com/questions/8330663/how-do-i-get-a-substring-in-ios

scannerWithString s int num sc scanUpToCharactersFromSet NSCharacterSet decimalDigitCharacterSet intoString nil sc scanInt num Or int num NSError err nil NSRegularExpression r NSRegularExpression regularExpressionWithPattern @ d options 0..