我有一个包含单词和数字的字符串.如何从字符串中提取该数字?
NSString *str = @"This is my string. #1234";
我希望能够将1234剥离为int.每次搜索时,字符串都会有不同的数字和单词.
想法?
iphone objective-c nsnumber nsstring ios
ios ×1
iphone ×1
nsnumber ×1
nsstring ×1
objective-c ×1