Created
October 25, 2014 11:40
-
-
Save yat1ma30/193905c610bda1395c5f to your computer and use it in GitHub Desktop.
Swiftで複数行なNSStringの1行目を取得する ref: http://qiita.com/ottati/items/f1019c821882697e9ed6
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
// textは複数行のNSStringオブジェクト | |
let title = text.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet())[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment