Created
July 11, 2013 02:20
-
-
Save ethanbing/5972000 to your computer and use it in GitHub Desktop.
Mac判断是不是空行
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([[str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length]<=0) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment