NSCharacterSet *_NumericOnly = [NSCharacterSet decimalDigitCharacterSet];
NSCharacterSet *myStringSet = [NSCharacterSet characterSetWithCharactersInString:mystring];
if ([_NumericOnly isSupersetOfSet: myStringSet])
{
//String entirely contains decimal numbers only.
}
Nice One..
ReplyDeleteit's really USEFULLLLLLLLLL
ReplyDelete