Tuesday, September 10, 2013

check if a string is numeric or not --- IOS SDK


NSScanner *scanner = [NSScanner scannerWithString:testString];
BOOL isNumeric = [scanner scanInteger:NULL] && [scanner isAtEnd];

2 comments:

  1. Heya! I realize this is sort of off-topic but I needed to
    ask. Does building a well-established website such as
    yours take a large amount of work? I am brand new to running a blg
    however I do write in my diary daily. I'd lioke to start
    a blog so I can easily share my own experience and eelings online.
    Please let me kno if you have any kind off recommeendations or ips
    for new aspiring bloggers. Thankyou!

    Here is my site - education bandwagon

    ReplyDelete
  2. We stumbled over here different wbsite and thought I might
    as wel heck things out. I lijke what I see so i am just following
    you. Look forward to looking at your web page again.

    Here is my web page: Working xbox live generator

    ReplyDelete