Fx Developer

Pages

  • Home
  • Tips and Tricks
  • Tutorials
  • iPhone App
  • Contact

May 26, 2014

[iOS] is Numeric ?

The simplest way to get to know one string is a number.

+ (BOOL) isNumeric:(NSString *)str
{
    NSScanner *sc = [NSScanner scannerWithString: str];
    if ( [sc scanFloat:NULL] )
    {
        return [sc isAtEnd];
    }
    return NO;

}
Posted by Unknown at 5/26/2014 08:26:00 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Tips and Tricks

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contact Form

Name

Email *

Message *

Search This Blog

Categories

  • iPhone App
  • Tips and Tricks
  • Tutorials

Popular Posts

Blog Archive

  • ▼  2014 (33)
    • ►  September (1)
    • ►  August (2)
    • ►  July (5)
    • ►  June (6)
    • ▼  May (19)
      • Word Look - English
      • FaCal
      • [iOS] play sound
      • Fast food objective-c (part 11) : Categories
      • Fast food objective-c (part 10) : Calling Methods ...
      • Fast food objective-c (part 9) : Properties
      • Fast food objective-c (part 8) : Logging
      • Fast food objective-c (part 7) : More on Memory Ma...
      • Fast food objective-c (part 6) : Class Implementation
      • Fast food objective-c (part 5) : Designing a Class...
      • Fast food objective-c (part 4) : Basic Memory Mana...
      • Fast food objective-c (part 3) : Creating Objects
      • Fast food objective-c (part 2) : Accessors
      • Fast food objective-c (part 1) : Calling Methods
      • [iOS] random Color
      • [iOS] is Numeric ?
      • Fx Stencil
      • [iOS] detectIPhone or iPad
      • [iOS] detected iOS 5, 6 & 7

Contributors

  • Unknown
  • lephuongtien.dev
Le Phuong Tien. Watermark theme. Powered by Blogger.